Created
February 3, 2019 20:55
-
-
Save GregOnNet/6fd035dbc092f006e6bb4633afe42518 to your computer and use it in GitHub Desktop.
Git | Basic 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
# Staging | |
alias s="git status" | |
alias a="git add" | |
alias aa="git add --all" | |
# Commit | |
alias cim="git commit --message" | |
alias cima="git commit --all --message" | |
alias aac="git add --all && git commit --all --message" | |
# Move | |
alias co="git checkout" | |
alias reset="git reset" | |
alias revert="git revert" | |
# Branches | |
alias b="git branch" | |
# Integrate | |
alias mt="git mergetool" | |
alias merge="git merge" | |
alias rebase="git rebase" | |
alias rbc="git rebase --continue" | |
alias rbs="git rebase --skip" | |
alias rba="git rebase --abort" | |
alias cherry-pick="git cherry-pick" | |
# Log | |
alias gls="git log --oneline --graph --all" | |
alias gl="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all" | |
# Server | |
alias push="git push" | |
alias pull="git pull --rebase" | |
alias clone="git clone" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment