No way to ignore files globally
What steps will reproduce the problem?
This is not a behavioral bug.
What is the expected output? What do you see instead?
This is not a behavioral bug.
What version of TortoiseGit and Git are you using? On what operating system?
TortoiseGit 2.11.0.0 with Git 2.29.3 on Windows 10
Please provide any additional information below.
TortoiseGit features a very convenient "Add to ignore list" menu to make Git ignore files. This feature even offers to ignore in several ways:
- .gitignore in the repository root
- .gitignore in the containing directories of the items
- .git/info/exclude
Unfortunately, none of these is the way which would be most useful to me. As I use Eclipse and other IDE-s such as IntelliJ IDEA which create project files in the project's directory, I always need to ignore these (for example, at this moment, Eclipse's .settings folder and .project file). The best way for me to do this without polluting each project's repositories is to ignore them locally, which is also more efficient since I only need to do it once per Git install rather than once per project.
Until TortoiseGit allows this, this Medium article explains how to proceed using the command line, but has a couple errors:
- The value of core.excludesfile needs to match the created file's name (you should probably create a ".gitignore" instead of ".gitignore_global").
- Git Bash does not interpret "%USERPROFILE%". At least with Git Bash, your command should look like $ git config --global core.excludesfile "C:\Users\CLOP03\.gitignore".