Like most newbies, I started out searching StackOverflow for Git commands, then copy-pasting answers, without really understanding what they did.

Image credit: XKCD
Well, here I am years later to compile such a list, and lay out some best practices that even intermediate-advanced developers should find useful.
To keep things practical, I’m basing this list off of the actual Git commands I used over the past week.
Almost every developer uses Git, and most likely GitHub. But the average developer probably only uses these three commands 99% of the time:
Read more at freeCodeCamp