Created
July 20, 2020 17:50
-
-
Save renzofp/dcbacad6ae2198b6fb51520888feeed2 to your computer and use it in GitHub Desktop.
Git aliases
This file contains hidden or 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 -sb" | |
alias gc="git commit -m" | |
alias gd="git diff" | |
alias gch="git checkout" | |
alias gl="git log --all --decorate --oneline --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gchanges="gl -p" | |
alias gls="gl -n 10" | |
alias gp="git push" | |
alias gpl="git pull origin" | |
alias gb="git branch" | |
alias gstash="git stash" | |
alias gau="git add -u" | |
alias ga="git add" | |
alias grha="git reset --HARD" | |
alias gcp="git cherry-pick" | |
alias gf="git fetch origin" | |
alias grv="git remote -v" | |
alias gro="git remove origin" | |
alias gao="git add origin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment