Skip to content

Instantly share code, notes, and snippets.

@venkywonka
Forked from tj/git aliases.sh
Last active October 28, 2020 05:10
Show Gist options
  • Save venkywonka/7b8ab0298d34439bfcf98c6f25368af5 to your computer and use it in GitHub Desktop.
Save venkywonka/7b8ab0298d34439bfcf98c6f25368af5 to your computer and use it in GitHub Desktop.
Some helpful git aliases
alias gd="git diff"
alias gclone="git clone"
alias ga="git add"
alias gbdel="git branch -D"
alias gst="git status"
alias gcommit="git commit -a -m"
alias gptags="git push --tags"
alias gp="git push"
alias gpr="git pull-request"
alias grhard="git reset --hard"
alias gb="git branch"
alias gchb="git checkout -b"
alias gch="git checkout"
alias gba="git branch -a"
alias gcp="git cherry-pick"
alias gl="git log --pretty='format:%Cgreen%h%Creset %an - %s' --graph"
alias gpull="git pull"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment