Skip to content

Instantly share code, notes, and snippets.

@kcelsi
Last active May 20, 2021 09:29
Show Gist options
  • Save kcelsi/2268669d2faae576f4a9a004ff84e182 to your computer and use it in GitHub Desktop.
Save kcelsi/2268669d2faae576f4a9a004ff84e182 to your computer and use it in GitHub Desktop.
Aliases
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gco='git checkout '
alias gsw='git switch '
alias gp='git push '
alias gpl='git pull'
alias gf='git fetch '
alias gl='git log '
alias ghist='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'
alias gbclean='git branch --merged | egrep -v "(^\*|master|main|dev)" | xargs git branch -d'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment