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

前端 未结 20 1733
梦谈多话
梦谈多话 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 07:48

    As pointed out in other answers, the selected answer is wrong.

    The answer to another question suggests that it may be skip-worktree that would be required.

    git update-index --skip-worktree 
    

提交回复
热议问题