Skip to content

Instantly share code, notes, and snippets.

@GregOnNet
Created February 3, 2019 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GregOnNet/6fd035dbc092f006e6bb4633afe42518 to your computer and use it in GitHub Desktop.
Save GregOnNet/6fd035dbc092f006e6bb4633afe42518 to your computer and use it in GitHub Desktop.
Git | Basic Aliases
# 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