Can I make a user-specific gitignore file?
- How many lines of code modified during a time period?
- Remove old and add new git in android studio
- How to use git to manage one codebase but have different environments
- Managing local-only changes with git
- Git: Why is only 1 merge showing in my history when I have done several?
- UCM Clear Case: Hiereachy of streams in one project vs multiple projects
3 Solutions collect form web for “Can I make a user-specific gitignore file?”
For user-specific and repo-specific file ignoring you should populate the following file:
Usually $GIT_DIR stands for:
You can create your own .gitignore using
git config --global core.excludesfile $HOME/.gitignore
Then put your desired entries in that file.
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.