4 ms·
I don’t do the * in the gitignore because I use the confit alias and disable showing untracked files. That way I can use the .gitignore in the home as my global
by hk1337 1y ago
I don’t do the * in the gitignore because I use the confit alias and disable showing untracked files. That way I can use the .gitignore in the home as my global gitignore
I love the bare repo method though. I’ve been using it for several years and haven’t had a need for another
- yencabulator 1y agoYou can use ~/.config/git/ignore (core.excludesFile).
- hk1337 1y agoIs that an automatic/default setting or did you just pick that path and you have to set the ignore filename in .gitconfig? Because, I know I could name it ~/.gitignore_global too.
- yencabulator 1y agoThat's the default path, you can change it. Original comment has the config variable.
- hk1337 1y agothat's pretty cool. I didn't realize that. when I first started that wasn't how it was being used so I never picked up on it. Using .config/git/ saves me a couple of lines in the config file.