How to display an alias definition?

git help alias_name

To display an alias definition use git help alias_name.

Git help alias_name will display a 'No manual entry' error, if the alias doesn't exist.

Layer 1
Terminal Example
git help recent
'recent' is aliased to 'branch --sort=-committerdate --format="%(committerdate:relative)%09%(refname:short)"'

git help nonexistent_alias
No manual entry for gitnonexistent_alias

See git help to learn more about it.

Last modified on November 30, 2021.

You might also like