Skip to content

git aliases

Generated page

Built from the repository sources at publish time by scripts/docsgen. Do not edit by hand; change the source file named below and the page follows.

Source: dot_gitconfig.tmpl

From the [alias] block of the rendered ~/.gitconfig.

21 entries.

Alias Expands to
whoami config user.email
s status -sb
co checkout
sw switch
br branch
cm commit -m
ca commit --amend --no-edit
cane commit --amend
unstage reset HEAD --
last log -1 HEAD
lg log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all
ls log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=short
diffs diff --staged
pushf push --force-with-lease
wip !git add -A && git commit -m 'wip' --no-verify
undo reset HEAD~1 --mixed
cleanup !git branch --merged | grep -vE '^\\*|main|master|develop' | xargs -n 1 git branch -d
root rev-parse --show-toplevel
aliases config --get-regexp ^alias\\.
fixup "!f() { git commit --fixup=$1; }; f"
sync !git pull --rebase && git push