Aliases
One specific feature that git users seek to get out of the git config files are aliases. Often short-hand favourites to (too) long commands like:
co = checkout
st = status
Or it can be home-made names for long-and-hard-to-remember commands like my:
root = rev-parse --show-toplevel
You define them as entries under the alias group:
Try this:
git co
git st
git root
git config --global --add alias.co checkout
git config --global --add alias.st status
git config --global --add alias.root "rev-parse --show-toplevel"
git co
git st
git root
Aliases
.gitconfigfile that should contain aliases and settings to be shared among team members?--globalfile?One specific feature that git users seek to get out of the git config files are aliases. Often short-hand favourites to (too) long commands like:
Or it can be home-made names for long-and-hard-to-remember commands like my:
You define them as entries under the
aliasgroup:Try this: