How to stop tracking and ignore changes to a file in Git?

前端 未结 20 1772
梦谈多话
梦谈多话 2020-11-21 07:17

I have cloned a project that includes some .csproj files. I don\'t need/like my local csproj files being tracked by Git (or being brought up when c

20条回答
  •  青春惊慌失措
    2020-11-21 08:02

    To save some time the rules you add to your .gitignore can be used for removing multiple files/folders i.e.

    git rm --cached app/**/*.xml

    or

    git rm --cached -r app/widgets/yourfolder/

    e.t.c.

提交回复
热议问题