How do I find the default branch for a repository using the Github v3 API
Make a call to /repos/:owner/:repo and read the default_branch property value – this is the name of the default branch. See example response here: http://developer.github.com/v3/repos/#get