visual studio - TFS/GIT in VS Cannot switch to master because there are uncommitted changes -
i've setup git repository vs 2013 solution on visualstudio.com. repository worked great while becoming accustomed using tfs (in git mode).
then decided familiarize myself branches, created branch off of master. i've made quite few changes in branch. i've committed changes on time , have performed sync push local commits visualstudio.com repository. works.
the problem having somehow lost ability of switching master branch. cannot merge newly created branch master. every time try involves master following error in vs:
cannot switch master because there uncommitted changes. commit or undo changes before switch branches. see output window details.
the output window never contains 'details'...
what "uncommitted changes" message refer to? since cannot master branch have no way of committing of changes (nor sure want to?). , current (only other) branch in has been committed , sync'ed.
i'm learning tfs, git , source control. how safely recover problem?
okay, had same issue myself rwkiii - bug in visual studio , not easy 1 fix. here symptoms:
visual studio states cannot merge/switch braches/etc. because have uncommitted changes - fine, except changes have been committed.
cannot switch master because there uncommitted changes. commit or undo changes before switch branches. see output window details.
here's screenshot clearer.
if @ output window, may appear empty have change "show output from" "source control - git". list file visual studio thinks has changes.
now, things tried didn't fix (so don't have to):
- restarting visual studio
- restarting machine
- switching projects
- using external git tools (all of said "no changes")
- git reset
- making arbitrary changes file , committing that. commits ok, vs still thinks there's more changes
in end, had go , delete file disk, "undo" change team explorer window:
not ideal solution, seem fix it.
Comments
Post a Comment