prefer git pull --rebase to git pull
git config --global alias.up "pull --rebase"
git up
git commit --amend change last commit
git rebase -i <up to commit> then use pick, squash, fixup, reword etc to modify history
git log --pretty=oneline shows log on one line. Could be a good one to alias as lol :)
git config -e --global edit global config: add aliases etc.
git merge --no-ff forces you ot have a merge commit so that you can undo a branch in one revert
Look at git save and wipe from Gary's gist (https://gist.github.com/garymcleanhall)
git wipethengit checkout <wiped commit>to go to detached mode for wiped commit
Lookup gitkraken