Git changes not showing in VS2013 Update 2

后端 未结 8 1083
旧巷少年郎
旧巷少年郎 2021-02-19 08:02

I am using Git in VS2013 and my changed files are not showing up in the Changes window of VS.

When I have changed a file but before I have saved it to disk it does show

8条回答
  •  甜味超标
    2021-02-19 08:39

    I had this same problem and it was happening because all the code files were in a subfolder which also contained a git repository and that was preventing it from staying in the "included changes" section after saving.

    To fix it I went into the subfolder and changed all the names of the git files to something else (ex. renamed .git folder to z.git, .gitingore to z.gitingorez, ect). After that all the files showed up in the "untracked files" section and the changes stayed in the "included changes" section after saving.

提交回复
热议问题