Set up the Git repository in the working directory:
git init
Commit everything you have:
git add . git commit
( git add . assumes that you do not have files that can be ignored, perhaps do this for each file or copy through .gitignore .)
Now add the Bitbucket repository as remote:
git remote add origin <url>
Pull and rebase with Bitbucket:
git pull --rebase origin master
And when you are satisfied with the results, click them:
git push -u origin master
source share