Monday, November 25, 2013

Push up an existing repository [bitbucket.org]

You already have a Git repository on your computer. Let's push it up to Bitbucket.
cd /path/to/my/repo
git remote add origin https://username@bitbucket.org/username/test.git
git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags
[source]

No comments: