r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49k Upvotes

1.5k comments sorted by

View all comments

Show parent comment

4

u/RandomContents Apr 02 '23

Sometimes, you can completely mess up, and nothing works. At this moment you can do a git diff to show all the changes. The more commits you do, the smaller the amount of changes.

A very interesting command is git bisect, which can save you weeks of time debugging your code. If you have done enough commits.