Git is great but quite complicated to fully master1. Fortunately, being familiar with a few commands is usually enough. Here’s basically all the git commands that I use. (First of all, I need to claim that I prefer using a GUI. I either use RStudio’s Git panel or Git’s GUI.) Clone git clone {git-url} {local-folder}: clone a remote repository to local Branch git checkout {branch-name}: checkout to a branch git checkout -b {new-branch-name}: create a new branch and checkout to it git branch -d {branch-name}: delete a local branch (should use -D if the branch hasn’t been …