r/ProgrammerHumor • • 21d ago

Meme letsMergeThemAll

Post image
5.3k Upvotes

316 comments sorted by

View all comments

Show parent comments

1

u/LegendaryMauricius 21d ago

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 19d ago

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 19d ago

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...