Git Commands Worth Remembering

19 Jan 2021 - Dan Petrow

Today I used Git again. I made quite a few mistakes already with git that caused my remote branches and my local branches to be in a bad state. Luckily, I created remote and local staging branches and managed to keep in tact.

What I learned tonight is the importance of deleting local branches when you are done with them because they cause problems if you leave them and don’t know exactly what you are doing. Here are some commands to remember.