Can I make a user-specific gitignore file?

后端 未结 5 485
陌清茗
陌清茗 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条回答
  •  -上瘾入骨i
    2020-11-29 00:43

    For user-specific and repo-specific file ignoring you should populate the following file:

    $GIT_DIR/info/exclude

    Usually $GIT_DIR stands for:

    your_repo_path/.git/

提交回复
热议问题