Git Toolbox

// Git Toolbox

Git alias generator

Pick the shortcuts you want (or create yours) and paste the result in your Git config.

Every day

History

Undo

Branches and tools

Your own alias

Result

13 aliases

Run git config --global --edit and paste this at the end of the file. Works on every system.

~/.gitconfig
[alias]
st = status -sb
sw = switch
br = branch
cm = commit -m
sync = pull --rebase --autostash
pushf = push --force-with-lease
lg = log --graph --oneline --decorate --all
last = log -1 HEAD --stat
staged = diff --cached
unstage = restore --staged
undo = reset --soft HEAD~1
recent = branch --sort=-committerdate --format=%(committerdate:relative)%09%(refname:short)
aliases = "config --get-regexp ^alias\\."