Last active
March 28, 2025 11:39
-
-
Save tj/4998585 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 gd="git diff" | |
alias gc="git clone" | |
alias ga="git add" | |
alias gbd="git branch -D" | |
alias gst="git status" | |
alias gca="git commit -a -m" | |
alias gpt="git push --tags" | |
alias gp="git push" | |
alias gpr="git pull-request" | |
alias grh="git reset --hard" | |
alias gb="git branch" | |
alias gcob="git checkout -b" | |
alias gco="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 docs="rm -fr /tmp/docs && cp -fr docs /tmp/docs && git checkout gh-pages && cp -fr /tmp/docs/* ." | |
alias gpom="git pull origin master" | |
alias gcd='cd "`git rev-parse --show-toplevel`"' | |
alias gdmb='git delete-merged-branches' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment