FahamLah

Commands

git config --global alias.<name> "<command>"

git config --global alias.<name> "<command>"

Risk: Safe

What it does

Makes a short name for a Git command you type often.

When to use it

When you are tired of typing a long command.

Example

$ git config --global alias.st status

Now git st does the same as git status.

$ git config --global alias.lg "log --oneline --graph --all"

git lg draws your whole history.

$ git config --global --get-regexp alias

List all your aliases.