Git: Setting Up git on bitbucket

By Xah Lee. Date:

to use, first create a accout from their website.

then, create a new project, on their site.

Setting Up SSH Key

see Git: Setting up git on GitCafe

Create Git Repository If Necessary

If you don't have a git repo yet, then do:

[see git Tutorial]

Associate a Name to Bitbucket URL

then, here's how to associate your existing git on your machine to bitbucket.

cd git_repo_path

git remote add bitbucket ssh:// → associate a name to a repo url.

Push to Bitbucket

git push -u bitbucket --all → pushes up the repo and its refs for the first time.

git push -u bitbucket --tags → pushes up any tags.

[see Practical git in 1 Hour]