GIT: How to keep ignored files when switching branches?

后端 未结 3 1354
说谎
说谎 2021-01-02 13:52

I have an App.Local.config file which each developer has their own settings in. I do not want this file checked versioned in the GIT repo as every time it would be overwrit

3条回答
  •  执念已碎
    2021-01-02 14:27

    Seems like this file was in index once. So its deletion is a change. You can add it to .gitignore or .git/info/exclude and then just recreate it on each developers machine.

提交回复
热议问题