Visual Studio 2013 apparently has some nice slick Git integration.

However, after an hour of head-scratching with absolutely nothing making even the slightest bit of sense, I've only been able to create a local repository and despite cloning a remote bitbucket repository I simply cannot find a way to publish to my remote repository.

I've used TFS, Subversion, Perforce and just about everything else, but this is completely baffling, with no instructions and a completely un-intuitive user interface.

Any ideas anyone ?


Solution 1:

John's statement that "you need Team Foundation Server" to work with BitBucket is not correct.

I just published a project to BitBucket from Visual Studio 2013 (preview version). Here's how.

  • Add solution to Source Control

enter image description here

  • Commit to local Git

enter image description here

  • In the "Changes" area, click "Commits". This takes you to the dialog where you can publish to a Remote Repository.

enter image description here

  • Enter the URL to your BitBucket repository (must already exist in BitBucket and must be empty) and click "Publish"

enter image description here

  • Enter your BitBucket credentials when prompted. After the publish finishes you'll get a results message like this.

enter image description here

  • Use the "Sync" button to update BitBucket with your local commits

enter image description here

Solution 2:

Well, it's actually pretty easy to use GIT on MSVS 2013. You should be able to find a Clone button from the Team Explorer. Simply click on it and it will let you clone from any URL which means you can put Bitbucket link over there too.

http://i.stack.imgur.com/0y8oW.png

And once it's synced, you are good to go.

http://i.stack.imgur.com/Oenv7.png