- create a new repo in bitbucket (probably already);
- copy its SSH URL — something like
git@bitbucket.org:drtvader/superproject.git — make sure your name is there, not the office name after the colon; - go to your project folder on your computer;
git init initializes the git project;git add . add to it all the files and folders in the current directory and deeper;git commit -m "initial commit" - commits them all;git remote add origin git@bitbucket.org:drtvader/superproject.git - substitute the URL of your repo to Bitbucket copied in the 2nd step;git push origin master to throw a newly created commit on bitbucket.
Everything seems to be. You have no branches or tags yet. With BitBucket, you have already worked with this computer for your organization, so further comments will most likely not be useful:
A. You may need to answer yes when you first connect to BitBucket from your computer in the 8th paragraph with git push.. - to the question of whether to trust such a certificate from such an IP address.
B. If you have not used git from this computer before, you will need to configure git - set your name in Latin letters and email - they will be listed as the author of commits from this computer:
git config --global user.name Vassia Poupkin git config --global user.email poupkin@mail.ru
C. Maybe not all files you want to control git'om - for example, configs with passwords - create a .gitignore file in .gitignore and .gitignore their names there, one per line, so that git does not pay attention to them.
D. Create a README.md file in the project root in the Markdown markup with a description of your project, its name and honorable copyrights — BitBucket will show the contents of this file on your project page.