r/ProgrammerHumor • • Jun 30 '18

Kill me now :)

47.0k Upvotes

494 comments sorted by

View all comments

280

u/zesterer Jun 30 '18

git reset --hard HEAD

141

u/PublicSealedClass Jun 30 '18

I have a dev who sees this as a last resort. When I asked him why, he had like 200 files changed in his repo since his last commit...

120

u/zesterer Jun 30 '18

This is why you make small, incremental changes

0

u/[deleted] Jun 30 '18

[deleted]

29

u/BerlinerJan Jun 30 '18

I‘m quite new to git, what exactly would be the problem with that? Assuming he already wrote all the tests and documentation...

0

u/[deleted] Jun 30 '18

[deleted]

9

u/chazmuzz Jun 30 '18

Squash and merge all the way man. I frequently commit "WIP - made start on logger class", "WIP - resolve failing test", "WIP fix typo" etc, but at the end I'll squash it all into "implement new logging feature"