Skip to content

Instantly share code, notes, and snippets.

@marchampson
Created January 28, 2013 14:11
Show Gist options
  • Save marchampson/4655798 to your computer and use it in GitHub Desktop.
Save marchampson/4655798 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'
@ProExpertProg
Copy link

You're missing a / in your comment:

gh api -X PUT repos/:owner/:repo/collaborators/SOMEONE

@RashidMehmoodCUIATD
Copy link

You're missing a / in your comment:

gh api -X PUT repos/:owner/:repo/collaborators/SOMEONE

An example would have been very good addition to your post

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment