Skip to content

Instantly share code, notes, and snippets.

@sdemjanenko
Last active November 25, 2019 22:04
Show Gist options
  • Save sdemjanenko/89cc18eb911dbb36e65f5ec6c5d5509e to your computer and use it in GitHub Desktop.
Save sdemjanenko/89cc18eb911dbb36e65f5ec6c5d5509e to your computer and use it in GitHub Desktop.
Bash aliases
alias gd='git diff'
alias gdc='git diff --cached'
alias gl='git log --pretty=format:'\''%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'\'' --abbrev-commit'
alias gls='git log --stat'
alias gg='git grep -n'
alias gc='git commit'
alias gs='git status'
alias gb="git for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short)'"
alias gri='git rebase -i '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment