If you are like me, you like using git in the terminal. Here are few absolutely essential git commands I use everyday.
git checkout -b somebranch # start working on a branch
git commit -am 'conquered the world' # add and commit your changes
git push origin HEAD # create PR in your remote
git fetch
+ git rebase origin/master
+ git push -f origin HEAD # rebase with master as separate push
git commit --amend --no-edit # add and amend to last commit (double -)
git push -f origin HEAD # force your updates to remote
git status # check where you are and what is the status
git pull # update your branch with remote
git branch -d your_useless_branch # delete your local branch
git push origin --delete your_useless_remote_branch # delete remote branch, if you are really brave (double -)
git reset --hard HEAD # reset and clean all changes if you are REALLY sure (double -)
git checkout yourbranch # change to other branch
git checkout -b new branch # create new branch and checkout
Let me know if you like/use other commands, and if you use different version of those above!