Visual Studio TFS Git not seeing any changes

后端 未结 11 832
后悔当初
后悔当初 2020-12-23 13:13

I\'m not getting something about Visual Studio\'s Git for TFS.

I cloned a colleague\'s solution in Git on TFS and started adding code. I then realised that I needed

11条回答
  •  伪装坚强ぢ
    2020-12-23 13:50

    I had the same probem and I realized the following: In order to show the changeset, As @dumbledad said, Visual Studio runs the command

    git add -u 
    

    internally for staging the updates. If some of the files that you are trying to add to your changeset is open by another process, then the git command gets a permission error. And Visual Studio won't show the changes.

    In my case, I had a document in my repo that was open by another application, and that caused Visual Studio not to show the modifications because of the Git permission error. So check if any of the files of your git repository is not open by any other application.

提交回复
热议问题