by themulticaster · 3y ago · 0 comments
Git life pro tip (that you didn't know you needed until now): You can use .git/info/exclude (present in every Git repository) as a local, private version of .gitignore. It has the same syntax as .gitignore, but isn't tracked by Git. So you could add .cargo/config.toml to .git/info/exclude, changing the linker locally without Git considering it as an untracked file. I generally use this feature to ignore files that are specific to my development setup which I don't want to list in .gitignore.
A similar one: ~/.config/git/ignore is a global private gitignore.
Great for files across repos which you always want to ignore, such as temporary files from an editor