Visual Studio 2013 and BitBucket

Dean Chalk picture Dean Chalk · Sep 16, 2013 · Viewed 88.8k times · Source

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 ?

Answer

Tim Cavanaugh picture Tim Cavanaugh · Oct 22, 2013

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