Visual studio git sync throwing error

In visual studio 2015, When I commit and sync a change I get the following error

Unable to sync because the current branch does not track a remote branch. Publish the branch to sync changes with the remote.

But I have no idea why this is happening.


In order to push your changes to git you first need to create the branch on the remote server holding your repository. Assuming that you have set up a repository and connected visual studio to it, open Team Explorer, hit home (the "House" button), click "Sync" and then "Publish".

If you have not set up the repository yet, you first need to do that. Open Team Explorer, click "Manage connections" (the power cord plug icon) and follow the instructions.


Please try the below work around which may help you resolve your issues.

Form Team explorer home screen:

  • Click Branches
  • Click on the drop-down at the top that has Branches | {Project Name}
  • Select Sync
  • Click Sync button
  • Your branch will be moved to Remote server.

    链接地址: http://www.djcxy.com/p/89092.html

    上一篇: 将D3注入AngualrJS的适当公约

    下一篇: Visual Studio git同步抛出错误