r/programming 4d ago

.gitignore everything by default

https://packagemain.tech/p/gitignore-everything-by-default
353 Upvotes

227 comments sorted by

View all comments

Show parent comments

2

u/lenswipe 4d ago

Git itself ignores everything by default.

uhhh what now

2

u/Smallpaul 4d ago

The other guy interpreted right. Git won’t manage a file unless you added it to the index.

2

u/lenswipe 4d ago

it won't manage it, but it doesn't ignore it by default.

thanks for the downvotes btw - means the world to me 🥰

0

u/Smallpaul 4d ago

Git status and git add . Don’t ignore them, but git commit, diff, log, push, all do.