A list of commonly used GIT commands.
git clone https://github.com/user/repo.git
git init
git status
git diff
git add .
git add -p somefile.txt
git commit -m 'Your message here'
git add . && git commit -am. && git push
git commit -am.
git add -u .
git add -u somefile.txt
git log
git log -p somefile.txt
git blame somefile.txt
git branch
git checkout <branch>
git branch <new-branch>
git branch --track <new-branch> <remote-branch>
git branch -d <branch>
git tag <tag-name>
git remote -v
git remove show <remote>
git remote add <remote> <url>
git remote add origin https://github.com/user/repo.git
git fetch <remote>
git pull <remote> <branch>
git pull origin
git push <remote> <branch>
git push <remote> :<branch>
git push --tags
git merge <branch>
git rebase <branch>
git rebase --abort
git rebase --continue
git mergetool
git reset --hard HEAD
git checkout HEAD somefile.txt
git revert <commit#>
git reset --hard <commit#>
git reset <commit#>
git reset --keep <commit#>
git update-index --assume-unchanged somefile.txt
git update-index --no-assume-unchanged somefile.txt