A cheat sheet of the git commands I use
Clones a git repository from a source such as github to your local device.
git clone <reopository>
Compares the differences between your local repo and the origin, then pulls the changes to the local repo.
git pull
Lists all modified files and their changes from the original.
git diff
Lists the changes of the file compared to the original
git diff <file name>
Tells you whether a file is tracked or not as well as if they've been modified or not.
git status
Track a file by adding it to the commit
git add <file name>
git reset <file name>
git add -p <file name>
git reset <file name>
git checkout <file name>