3 ms·
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 y
by judofyr 4mo ago
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.
- williamjackson 4mo agoI do this too! But I call it `.local`
- zahlman 4mo agoI have a new-repository script that creates a .local directory and puts a .gitignore with just `*` in it.
- bflesch 4mo agoDoesn't git automatically exclude all files starting with a dot?
- micael_dias 4mo agoNo
- groundcontr01 4mo agoHey do you have a GitHub I can look at?
- bflesch 4mo agoI have nothing of value ;D
- weinzierl 4mo agoMine is aux 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.
- metadat 4mo agoGenius idea.
- addedGone 4mo agoThe next Elon musk.
- trinix912 4mo agoDoes Windows still go crazy when making an “aux” or “con” directory or has this been patched?
- fluoridation 4mo agoIt's never going to be patched because it's not considered a bug.
- deleted 4mo ago[deleted]
- thewisenerd 4mo agomine's `scratch/` hasn't tripped me up (yet)
- deathanatos 4mo agoYou can also sort of invert this, but you have to do it on a case by case basis. Let's say you have a directory like attic; you can put inside a `attic/.gitignore`: /** & then that directory (and anything in it) is ignored, including the ignore file itself. I usually name my version of this directory the single character U+1F4A9, which HN refuses to permit me to put in a comment ;)
- oveja 4mo agoOh this is nice! I'll have an attic folder from now on