Skip to content

Instantly share code, notes, and snippets.

@lucis
Created April 27, 2023 16:22
Show Gist options
  • Save lucis/61b9e502fb3291a01232e2646d06f65a to your computer and use it in GitHub Desktop.
Save lucis/61b9e502fb3291a01232e2646d06f65a to your computer and use it in GitHub Desktop.
Useful Git alias
alias gp="git pull"
alias gpr="git openpr"
alias gcb="git checkout -b"
alias gc-="git checkout -"
alias grm="git rebase main"
alias grc="git rebase --continue"
alias garc="git add . && git rebase --continue"
alias grh="git reset --hard"
alias gac="git ac"
alias rebasemain="gcm && gp && gc- && grm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment