Skip to content

Instantly share code, notes, and snippets.

@rolandinsh
Created August 4, 2012 18:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save rolandinsh/3259141 to your computer and use it in GitHub Desktop.
Save rolandinsh/3259141 to your computer and use it in GitHub Desktop.
Bitbucket create/init and add remote
$ mkdir /path/to/your/project
$ cd /path/to/your/project
$ git init
$ git remote add origin https://USERNAME@bitbucket.org/USERNAME/project.git
Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:rolandinsh/empropwp.git
git push -u origin master
Push an existing repository from the command line
git remote add origin https://github.com/rolandinsh/empropwp.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment