git manage new repository on bitbucket

If you have an existing project:

cd /path/to/your/repo
git remote add origin ssh://git@bitbucket.org/<username>/<reponame>.git
git push -u origin master

If you are starting from scratch:

git clone git@bitbucket.org:<username>/<reponame>.git
cd <reponame>
echo "# My project's README" >> README.md
git add README.md
git commit -m "Initial commit"
git push -u origin master