我可以制作用户特定的 gitignore 文件吗? [英] Can I make a user-specific gitignore file?
本文介绍了我可以制作用户特定的 gitignore 文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改 gitignore,但并不是团队中的每个人都想要这些更改.用户如何拥有自己的特定 git ignore 文件?
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?
推荐答案
对于忽略特定于用户和特定于 repo 的文件,您应该填充以下文件:
For user-specific and repo-specific file ignoring you should populate the following file:
$GIT_DIR/info/exclude
通常 $GIT_DIR 代表:
Usually $GIT_DIR stands for:
your_repo_path/.git/
这篇关于我可以制作用户特定的 gitignore 文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文