How to stop tracking a file without removing it from repo

后端 未结 4 1139
醉话见心
醉话见心 2021-01-30 11:11

I have a config file which I want to keep on the remote repository, but I don\'t want to track its changes on my computer. Adding it to .gitignore doesn\'t do the trick.

<
4条回答
  •  盖世英雄少女心
    2021-01-30 11:23

    You could commit all the other files, and for the changes to the local configurations alone, you could use the 'stash' feature that git provides.

提交回复
热议问题