Why git rm --cached not remove local ever tracked file but others

前端 未结 3 1308
無奈伤痛
無奈伤痛 2020-12-06 15:13

When untrack a file in the git repository, use git rm -r --cached .. This will not remove the ever tracked file in local storage, but when other developers fetc

3条回答
  •  清歌不尽
    2020-12-06 15:58

    git rm --cached tracks a change of removing the file from git, but does not remove the local copy. Running ls locally will still show the local file, but if you pull from another machine, the change of removing that file will be applied, and the file removed.

提交回复
热议问题