Skip to content

Instantly share code, notes, and snippets.

@rgsingh
Forked from calculon993/Create-repo.md
Last active August 29, 2015 13:57
Show Gist options
  • Save rgsingh/9452300 to your computer and use it in GitHub Desktop.
Save rgsingh/9452300 to your computer and use it in GitHub Desktop.

From stackoverflow

####Replace USER with username and REPO with the name of the repository/application. git init

curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'

git add whatever

git commit -a

To remove origin: git remote rm origin

git remote add origin git@github.com:USER/REPO.git

git push origin master

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