How to create an alias for a command?

git config --global alias.name command

To create an alias for a command used often or for commands that are long and hard to remember use git config --global alias.name command.

Layer 1
Terminal Example
git config --global alias.st status

git st
On branch main
nothing to commit, working tree clean

See git config to learn more about it.

Last modified on November 30, 2021.

You might also like