Skip to content

Instantly share code, notes, and snippets.

@arindampradhan
Created April 1, 2015 12:52
Show Gist options
  • Save arindampradhan/464f28f1ec3a3a2f3d56 to your computer and use it in GitHub Desktop.
Save arindampradhan/464f28f1ec3a3a2f3d56 to your computer and use it in GitHub Desktop.
Some helpful git aliases
alias gs="git status"
alias ga="git add"
alias gb="git branch"
alias gc="git commit -m "$1""
alias gp="git push $1 $2" # gp OR gp [remote] [branch]
alias pull="git pull"
alias gt="git tag "$1""
alias gpt="git push --tags"
alias pull="git pull"
alias co="git checkout"
alias gl="git log --pretty=oneline"
alias gcl="git clone"
alias gpr="git pull-request"
alias gbd="git branch -D"
alias lol="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment