Created
April 1, 2015 12:52
-
-
Save arindampradhan/464f28f1ec3a3a2f3d56 to your computer and use it in GitHub Desktop.
Some helpful git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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