Can I make a user-specific gitignore file?

后端 未结 5 511
陌清茗
陌清茗 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:36

    You can create your own .gitignore using

    git config --global core.excludesfile $HOME/.gitignore
    

    Then put your desired entries in that file.

提交回复
热议问题