Skip to content
Ugochukwu Ejiogu edited this page Feb 25, 2022 · 5 revisions

You can add these to your ~/.bash_profile, ~/.bashrc or ~/.zshrc:

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'
alias gp='git push'
alias gpso='git push -u origin'
alias gfc='git fetch && git checkout'
alias glo="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"