gitversion-controlgitignore

Can I make a user-specific gitignore file?


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


Solution

  • 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/