Skip to content

Instantly share code, notes, and snippets.

@JaceTan
Created March 23, 2021 04:16
Show Gist options
  • Save JaceTan/26dcdaa516522a5f2a98c70d618435f7 to your computer and use it in GitHub Desktop.
Save JaceTan/26dcdaa516522a5f2a98c70d618435f7 to your computer and use it in GitHub Desktop.
Git Command Shortcuts to paste into .bashrc or .bash_profile
# Aliases - Git Shortcuts
alias cherrypick="git cherry-pick"
alias forcepush="push --force-with-lease"
alias gb="git branch"
alias gba="gb -a"
alias gc="git checkout"
alias gs="git status"
alias prune="git remote prune origin"
alias pull="git fetch && rebase"
alias push="git push"
alias rebase="git rebase"
alias stash="git stash"
alias status="git status"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment