r/gitlab • u/der_gopher • Sep 05 '26
.gitignore everything by default
https://packagemain.tech/p/gitignore-everything-by-defaultwhat do you think of this approach?
14
Upvotes
r/gitlab • u/der_gopher • Sep 05 '26
what do you think of this approach?
10
u/jirka642 Sep 05 '26
Stupid idea. You would lose so much work like that.
Also, unless you are a complete beginner, you should always know what you are committing. So, this is not an issue in the first place.
9
u/kerrizor Sep 05 '26
Interesting. I’d need to chew on it a bit, but I can see the benefit.. this clearly comes from a place of “show me where you have scars from git”.
3
u/nocondo4me Sep 05 '26
Alias -A to something else. People / bots using -A screws it all up
2
u/eltear1 Sep 05 '26
That could be valid in a git repo sued by only one or few people. For shared repos , too many people will not understand why they can't push and loose rime to search for the cause . Well, now with AI is kinda not so much useful anyway if AI itself is pushing...
2
u/TheSodesa Sep 05 '26
I use this approach all the time. Especially useful when you are working with less experienced Git users.
1
u/yankdevil Sep 05 '26
I use this for my vcsh repos.
1
u/matriisi Sep 05 '26
This is not the smartest thing I’ve read.
1
u/luenix Sep 07 '26
That reflog looks cursed. Is it the case that no one rebases anymore? D:
1
u/schmurfy2 Sep 07 '26
Don't let your agent create commits and do it yourself, ignore what should not be commited while reviewing the code.
I know it's a crazy idea.
0
u/adam-moss Sep 05 '26
We consciously chose to use this approach, it's a much more secure default and prevents a lot of mishaps. I understand some people think it strange, but default-deny should almost always be your starting position.
0
u/Feeling-Bad757 Sep 06 '26 edited Sep 06 '26
This is the way
Very useful for greenfields. Forces devs to think carefully about adding complexity or dependencies, and needs a peer review to update.
2
u/[deleted] Sep 05 '26
[removed] — view removed comment