Git commands

git clone url
this will make a copy of someone else's repo that you don't have yet

git checkout .
undo local changes to working directory

git add *
adds all files in current and expanded directory to track

git add .
adds all files in working directory

git checkout -- filename
undo local changes to a single file by retrieving it from the repo again

git push
add changes from local directory to master

git commit
make a commit message so that new or updated files can be pushed onto the repo later on

git diff [commit number] -- [localfilepath]
compare current file to the commit number on the repository, without the commit number it compares your file to the latest version on your repository

git stash
saves local changes to all your git tracked files

git stash pop
undoes the most recent "git stash" instance

Possible work flow:
git stash
git pull
git add [filename]
git commit -m "[commit message]"
git push
git pull
git stash pop