Re:Git ignores .gitignore with .gitignore in .gitignore
by RupertWiser on Wednesday May 18, 2022 @04:30AM
(#31420446)
Do you know about .git/info/exclude? It only exists in your local git file so it isn’t shared with a remote repo and achieves this same purpose.
[ Parent
| on HN ]
Re:Git ignores .gitignore with .gitignore in .gitignore
by Hamuko on Wednesday May 18, 2022 @04:39AM
(#31420496)
I also (mis)used .gitignore before I realised that there was an easy way to ignore stuff that I have locally without having to commit/ignore a .gitignore file.
Re:Git ignores .gitignore with .gitignore in .gitignore
by rpigab on Wednesday May 18, 2022 @04:34AM
(#31420466)
I didn't! Good to know, even if my way is really quick and simple to set up so I might continue doing the same.
Thanks!
Re:Git ignores .gitignore with .gitignore in .gitignore
by dfee on Wednesday May 18, 2022 @04:46AM
(#31420536)
Not at a term, but would this prevent `git clean -fdx` from removing the dir? That’d be quite useful!
Re:Git ignores .gitignore with .gitignore in .gitignore
by CGamesPlay on Wednesday May 18, 2022 @06:13AM
(#31420975)
No, since -x means to “disregard standard ignore rules”, such as .gitignore and .git/info/exclude.
> Don’t use the standard ignore rules (see gitignore[5]), but still use the ignore rules given with -e options from the command line.