Untrack and stop tracking files in git

后端 未结 1 667
暗喜
暗喜 2020-12-23 02:21

I have a deep subfolder called objects with files called *.object which I don\'t want tracked by git (Windows).

In .gitignore I have tried

相关标签:
1条回答
  • 2020-12-23 02:34

    OK, though wildcards don't work (in Windows apparently) it seems one can remove a whole folder with:

    git rm -r --cached "path/to/foo/"
    

    I understand that --cached only unstages - you have to git commit to remove them from the repo.

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