Home

GIT - Adding alias to a GIT command

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.



Last Updated on

Next Post: Rules vs Guidelines →

Comments