mikeymurph77
mikeymurph77

Reputation: 802

Create an alias for the word "git"

I see that you can add aliases in your git configs to do something like this aa = add --all... but you still need to type git before the aa is there a way to create an alias for the word "git"? So something like gaa would be git add --all?

Upvotes: 0

Views: 124

Answers (1)

lemonhead
lemonhead

Reputation: 5518

For zsh, add the following to your ~/.zshrc file (or ~/.bashrc for bash):

alias gaa='git add --all'

Upvotes: 1

Related Questions