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
- git config — The command that reads and writes Git settings, which live in plain text config files.
- git log — The Git command that lists commits with their identifiers, authors, times and messages.
Taught in
- Installing Git, And Telling It Who You Are — Advanced Git Internals & Distributed Workflows