We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.gitconfig
--global
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:
alias
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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Aliases
.gitconfig
file that should contain aliases and settings to be shared among team members?--global
file?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
alias
group:Try this:
The text was updated successfully, but these errors were encountered: