GIT-ALIAS(1)
π GIT-ALIAS(1) β the git-alias page, git-extras edition π
okay bestie, buckle up, we're doing the git-alias manual page and it's actually so useful it's unreal π«Ά
β¨ NAME β¨
git-alias β define, search and show aliases π
β¨ SYNOPSIS β¨
git-alias
git-alias <search-pattern>
git-alias <alias-name> <command>
git-alias [--global]
git-alias [--local]
git-alias [--global] <search-pattern>
git-alias [--local] <search-pattern>
git-alias [--global] <alias-name> <command>
git-alias [--local] <alias-name> <command>
β¨ DESCRIPTION β¨
So basically: list all your aliases, show off one single alias, or set one (global or local) alias. That's the whole vibe. One command, three moods. πΈ
β¨ OPTIONS β¨
--globalβ show or create the alias in the system config π (the big-picture, everywhere-all-the-time one)--localβ show or create the alias in the repository config π (just this repo, just this vibe)<search-pattern>β the pattern used to search aliases π<alias-name>β the name of the alias to create β¨<command>β the command for which you are creating an alias π«
β¨ EXAMPLES β¨
π Defining a new alias
$ git alias last "cat-file commit HEAD"
π Searching with one argument
Providing only one argument, git-alias searches for aliases matching the given value:
$ git alias ^la
last = cat-file commit HEAD
π Showing everything
git-alias will show all aliases if no argument is given:
$ git alias
s = status
amend = commit --amend
rank = shortlog -sn --no-merges
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
whois = !sh -c 'git log -i -1 --pretty="format:%an <%ae>
(yes that last line is exactly as long as it is in the source, no cap, we do not edit the sacred text π)
β¨ AUTHOR β¨
Written by Jonhnny Weslley <jw@jonhnnyweslley.net> π
β¨ REPORTING BUGS β¨
<https://github.com/tj/git-extras/issues>
β¨ SEE ALSO β¨
<https://github.com/tj/git-extras>
and that's the whole page, bestie π¦ thank you for coming to my ted talk. this one's from Git Extras, dated May 2026 β periodt, go make some aliases, you're gonna slay πβ¨
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms