github with Visual Studio 2013 - cannot pull because of uncommitted changes

前端 未结 1 598
攒了一身酷
攒了一身酷 2021-02-04 03:58

I am a single developer right now, but I do have a workplace, and I also do work at home. Github is pretty ideal for me because the goal is to track my code, but also just keep

相关标签:
1条回答
  • 2021-02-04 04:57

    Before pull-ing you need to stash your uncommitted changes first. Visual Studio does not support full range of Git functionality yet, including git stash, so you have to do it through command line or use something like Source Tree in addition to Visual Studio for such occasion. Run git status -u to see uncommitted changes and git stash to temporarily hide them before pulling/syncing. Once in a while Visual Studio will cache the status results and will get out of sync with reality, in this case kill Studio, delete .git\ms-persist.xml file and restart.

    0 讨论(0)
提交回复
热议问题