Created
March 24, 2020 21:42
-
-
Save cvan/de82796599f1800e3e8f75fa1b0d20b8 to your computer and use it in GitHub Desktop.
useful 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
# Inspired from https://github.com/cvan/dotfiles/blob/f21e950/.aliasrc#L26-L48 | |
alias gco='git checkout' | |
alias gg='git get' | |
alias gb='git branch' | |
alias ga='git add' | |
alias gd='git diff' | |
alias gs='git status' | |
alias gst='git stash' | |
alias gsta='git stash apply' | |
alias gl='git log --abbrev-commit' | |
alias glp='git log -p' | |
alias gp='git pull && git submodule update --recursive' | |
alias gr='git rebase' | |
alias gsq='git rebase -i head~5' | |
alias gbl='git for-each-ref --sort=-committerdate refs/heads/ | less' | |
alias gcaca='ga . && gci -a -C HEAD --amend' | |
alias gci='git commit' | |
alias gci!='git commit --no-verify' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment