Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2009 04:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/118455 to your computer and use it in GitHub Desktop.
Save anonymous/118455 to your computer and use it in GitHub Desktop.
How to get branches for private repositories using GitHub's API
Baldrick:~ jim$ curl -F 'login=JimRoepcke' -F 'token=hiddentoken' http://github.com/api/v2/yaml/repos/show/JimRoepcke/hiddenrepo/branches
---
branches:
master: cf89b8045cc78bff75cf412115443a1700350f66
uiv2: 51df3b9ef9a19d799d65f5d95c410f21f211bb53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment