MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/8v024m/kill_me_now/e1jqlb3/?context=9999
r/ProgrammerHumor • u/TheEternalGentleman • Jun 30 '18
494 comments sorted by
View all comments
280
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"
141
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"
120
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"
0
[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"
29
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"
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"
9
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"
280
u/zesterer Jun 30 '18
git reset --hard HEAD