Created
September 29, 2016 10:33
-
-
Save lightonphiri/efc08dda05b532f01fb35e168e802961 to your computer and use it in GitHub Desktop.
Creating Github and Bitbucket repositories via the terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creating new repositories via the terminal | |
## Github [1] | |
curl -u 'USERNAME' https://api.github.com/user/repos -d '{"name": "REPOSITORY-NAME", "description": "REPOSITORY DESCRIPTION", "private": true}' | |
## Bitbucket [2] | |
curl --user USERNAME https://api.bitbucket.org/1.0/repositories --data name='REPOSITORY-NAME' --data is_private='true' | |
## References | |
[1] https://developer.github.com/v3/repos/#create | |
[2] https://confluence.atlassian.com/bitbucket/repository-resource-423626331.html#repositoryResource-POSTanewrepository |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment