-
Notifications
You must be signed in to change notification settings - Fork 241
Recommended Git Aliases
Jason Swett edited this page Jan 21, 2015
·
2 revisions
Command aliases help you save time typing the same commands over and over.
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gca='git commit -a'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
To use these aliases:
- Paste them into your
~/.bash_profile
file. (If you don't have such a file, create it). - Run
. ~/.bash_profile
on the console to force your system to reload~/.bash_profile
, thus picking up your new aliases. You'll need to do this for each tab you have open if you want to use the aliases there. (But for new tabs you open, you don't need to reload~/.bash_profile
.)