Git · Setup and remotes

git config alias

Creates a shortcut for a command or a longer option combination.

Syntax
git config --global alias.st status

Example

Example
git config --global alias.lg "log --oneline --graph --decorate"

More in this group

git clone --branch git clone --depth git config core.autocrlf git config pull.rebase git init --bare git remote add git remote remove git remote set-url

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course