This is my collection of git alias command (many of which have been pilfered from across the web)
Stage and commit with a message all changes.
save = !git add -A && git commit -m
sync = !git pull --rebase --prune $@ && git submodule update --init --recursive
Show the history in a pretty format
lol = log --oneline --graph --decorate --all
Saves some keystrokes when creating a new branch
cob = checkout -b
Undo the last commit you made.
undo = reset HEAD~1 --mixed
Pull down the most recent version of master
and requests to delete any local branches that match the updated master
branch
bclean = "!foo() { git checkout master && git sync && git branch --merged master | grep -v " master$" | xargs -p -r git branch -d; }; foo"