Skip to content

Instantly share code, notes, and snippets.

@beshad
Last active December 19, 2016 00:54
Show Gist options
  • Select an option

  • Save beshad/78b77bf0beabe8756606c6cc33c9cb2e to your computer and use it in GitHub Desktop.

Select an option

Save beshad/78b77bf0beabe8756606c6cc33c9cb2e to your computer and use it in GitHub Desktop.
curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
git remote add origin git@github.com:USER/REPO.git
git push origin master
or for bitbucket:
curl --user login:pass https://api.bitbucket.org/1.0/repositories/ \
--data name=REPO_NAME
# replace USER with your username and REPO with your repository/application name!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment