Visual Studio 2017 15.3.0 git changes include “storage.ide” even though .vs/ in .gitignore

前端 未结 5 1537
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 09:04

I upgraded VS 2017 to 15.3.0 a few days ago. Since then file \"storage.ide\" has remained in my modified files, even through I have used a suggested .gitignore for VS, which inc

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-30 09:41

    To fix this, if you got to the Team Explorer tab and click on the Manage Connections button (the green one a the top) you will see a list of local Git Repositories.

    Right click on the repository you want to stop tracking the storage.ide file on and select Open Command Prompt.

    You should then be able to type the following:

    git rm --cached -r .vs
    

    This removes the .vs folder and its contents and subdirectories from being tracked in git.

提交回复
热议问题