Can I make a user-specific gitignore file?

后端 未结 5 506
陌清茗
陌清茗 2020-11-28 23:44

I want to change the gitignore, but not everyone on the team wants these changes. How can a user have their own specific git ignore file?

5条回答
  •  星月不相逢
    2020-11-29 00:48

    In their .gitconfig:

    [core]
        excludesfile = ~/.global_gitignore
    

    That way, they can ignore certain types of files globally. Each user can have their own global ignore file.

提交回复
热议问题