How to create an alias for a command?

git config --global command

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

Layer 1
Terminal Example
git config --global 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