For example, if you want to use git st to run git status use this command:

git config --global alias.st status

Alias for a long command. Example:

git config --global alias.force-push "push --force-with-lease"

You can also open up your ~/.gitconfig file and add aliases there as well.

[alias]
	a = add
	c = commit
	p = push
	s = status
	f = fetch

👉 Source