All articles
git

GIT - Adding alias to a GIT command

Share this article

Share on LinkedIn Share on X (formerly Twitter)

If you want to add an alias for a git command, use the following command:

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

Example usage of the above command will be like git config --global alias.st status. By having an alias st for status, you can use git st command instead of git status.


Comments