As an example I use this command to write a git aliases.
git config --global alias.a add
Now this means that I have to write:
git a
Which is super annoying..
I was wondering if there is a way that I can apply this aliase globally so that I only have to write:
a
This will save me from writing git..
I thought that this would work but it doesn't.
git config --global alias.a git add
Use a shell alias instead, like bash aliases:
alias a="git add"
If you put that in the ~/.bashrc
file, you'll automatically have the alias available in every shell instance.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments