Kevin
Kevin

Reputation: 3379

VS 2013 Built in GIT - Branches

This is my first time using GIT so I may completely be using it wrong or misunderstanding, but in VS 2013's built in GIT version control, I create a new branch and make some changes but those changes seem to be there even when I switch back to my main branch.

Is this how it's suppose to work? I assume that changes I make in one branch would not affect another branches' code...?

Upvotes: 1

Views: 1282

Answers (1)

VonC
VonC

Reputation: 1323973

You need to add and commit those files, before switching branches.

Otherwise, those private (ie not versioned) files will still be there when switching branches.

http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-45-92-2013-02-GitCreateConnectPublish/8255.GitConnectPublish10.png

Upvotes: 1

Related Questions