r/ProgrammerHumor • • Oct 15 '26

Meme letsMergeThemAll

Post image
5.3k Upvotes

316 comments sorted by

View all comments

Show parent comment

1

u/LegendaryMauricius Oct 15 '26

git command is definitely designed stupidly though. The system should be easy, but it's also easy to end up in a git specifics rabbithole because something got fucked up either by a bad command or some remote communication bug.

1

u/awesome-alpaca-ace Oct 17 '26

Most commits stay in git even when you do a hard reset. I forget how to get them since I usually note the commits before a reset, but you can find them and reapply them.  I think it is quite hard to lose a commit, but I'm not real sure...

1

u/LegendaryMauricius Oct 17 '26

True, but anything more complex than hard reset will have you searching through very unfriendly interfaces and modifying your git commands back and forth just to get the info on what happened. Even hard reset makes me check whether the selected commit is included or not every time...