Skip to content

Instantly share code, notes, and snippets.

@junaid18183
Forked from marchampson/collaborator api
Last active April 4, 2017 05:05
Show Gist options
  • Save junaid18183/f8d35ae9f3b8fb92eb91bd08b3e78bc0 to your computer and use it in GitHub Desktop.
Save junaid18183/f8d35ae9f3b8fb92eb91bd08b3e78bc0 to your computer and use it in GitHub Desktop.
Add collaborator from command line
curl -i -u "my_user_name:my_password" -X PUT -d '' 'https://api.github.com/repos/my_gh_userid/my_repo/collaborators/my_collaborator_id'
My own repos
curl -i -H 'Authorization: token secrettocken' https://api.github.com/users/junaid18183/repos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment