Skip to content

Instantly share code, notes, and snippets.

@kalineh
Last active July 25, 2022 16:50
Show Gist options
  • Save kalineh/11161ec85c3ff1a94521ebbd9dec88f9 to your computer and use it in GitHub Desktop.
Save kalineh/11161ec85c3ff1a94521ebbd9dec88f9 to your computer and use it in GitHub Desktop.
git bash aliases
alias gs='git.exe status'
alias ga='git.exe add'
alias gd='git.exe diff'
alias gc='git.exe commit'
alias gl='git log --graph --pretty=format:"%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative --branches'
alias gxx='git checkout -- "*" && git clean -fd'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment