Git alias

A short name you define for a longer Git command, stored in your config.

In more detail

git config --global alias.lg 'log --oneline --graph' makes git lg run that longer command. Aliases save typing but live only on your machine, so scripts and instructions for others should use the full command.

Example

git config --global alias.lg 'log --oneline --graph'

Related terms

Taught in

References