-
-
Save AdrianKoshka/2dd7ec4849c565a33bb9 to your computer and use it in GitHub Desktop.
Create GitHub repo from command line and push
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
# Personal Access Token required - go here: https://github.com/settings/tokens | |
repo="newrepo" | |
gh_user="adriankoshka" | |
gh_token="mytoken" | |
curl -u "$gh_user:$gh_token" https://api.github.com/user/repos -d '{"name":"'$repo'"}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment