I’ve met the same problem and here’s how I solved it:
-
(Assume your project is not already under local source control) Create a new project under LOCAL source control (Please note that adding remote source control at this stage may not be successful)
-
Make this new project a clone of your old project – drag files, add frameworks, etc.
-
In menu “Source Control” -> -> “Configure ”
In the new window, click on “Remotes” -> “+” -> “Add Remote” -
-
Name: anything (you can use “BitBucket”)
-
Address: https://accountname@bitbucket.org/accountname/reponame.git
-
-
“Source Control” -> “Commit”
-
Select “push to remote” at the left bottom corner
-
Click “Commit”
-
Check on BitBucket website to see if it’s actually pushed to it