I have a very simple solution for this problem. You don't need to use the console.
TLDR: Create repo, move files to existing projects folder, SourceTree will ask you where his files are, locate the files. Done, your repo is in another folder.
Long answer:
- Create your new repository on Bitbucket
- Click "Clone in SourceTree"
- Let the program put your new repo where it wants, in my case SourceTree created a new folder in My Documents.
- Locate in windows explorer your new repository folder.
- Cut the .hg and README (or anything else you find in that folder)
- Paste it in the location where is your existing project
- Return to SourceTree and it will say "Error encountered...", just click OK
- On the left side you will have your repository but with red message: Repository Moved or Deleted. Click on that.
- Now you will see Repository Missing popup. Click on Change Folder and locate your existing project folder where you have moved the files mentoned earlier.
- Thats it!
Tips:
Clone in SourceTree option is not available right after you create new repository so you first have to click on Create Readme File for that option to become available.