Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 939
Kiwi Avatar asked Dec 01 '15 12:12

Kiwi


1 Answers

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.

like image 151
octado Avatar answered Sep 20 '22 01:09

octado