logoalt Hacker News

hk1337yesterday at 2:30 PM2 repliesview on HN

~/.config/git/ignore and ~/.config/git/config is the proper place for your global git config and ignore instead of creating a ~/.gitignore_global and changing the config. IMO.

my dotfiles are a lot smaller at the root level taking advantage of the ~/.config/ for a lot more things.

the git exclude isn't used as much because it doesn't get committed to the repository so you'd have to recreate it each time you wanted to use it. that doesn't mean they're bad just why they are not used.


Replies

b40d-48b2-979eyesterday at 2:42 PM

As a bonus, you can (should?) version control your `~/.config` dir to enable future revisions and sharing.

show 2 replies
coryrcyesterday at 9:38 PM

Or use ~/.cvsignore for all the other things which use that same file.