logoalt Hacker News

grueztoday at 2:51 PM3 repliesview on HN

>This seems like bad advice. I've very rarely committed extra files by accident, [...]

You clearly haven't seen the people who are lazy and so just do `git add . && git commit -m ... && git push -f origin` every time.


Replies

rcfoxtoday at 2:54 PM

I'm not convinced people acting on muscle memory would remember to unignore the files either. They're going to lose work or have giant "oops, I forgot to commit these files" commits.

cushtoday at 2:57 PM

Now walk through exactly what would happen when those lazy people follow this approach…

You see the issue right?

show 1 reply
JimDabelltoday at 5:35 PM

> You clearly haven't seen the people who are lazy and so just do `git add . && git commit -m ... && git push -f origin` every time.

I’ve worked with and managed plenty of people like that and those are the people I least want doing something like this. Seeing the flotsam and jetsam of .DS_Store etc. are an early warning sign they aren’t paying any attention to what they push and the sooner that gets caught and addressed the better.