Not sure where I picked up this, but I’ve added this to my global Git ignore:
attic
That way you can just create an attic directory in any project where you can keep random stuff that should never be committed. I’ve yet to find a repo which actually has such a directory checker in.
Mine is
and I hide it by putting a .gitignore in it that just contains am asterisk (*), nothing else, that way it ignores itself and anything in it.Does Windows still go crazy when making an “aux” or “con” directory or has this been patched?
Genius idea.
The next Elon musk.
mine's `scratch/`
hasn't tripped me up (yet)
I do this too! But I call it `.local`
I have a new-repository script that creates a .local directory and puts a .gitignore with just `*` in it.
Doesn't git automatically exclude all files starting with a dot?
No