Skip to content

Instantly share code, notes, and snippets.

@DouglasdeMoura
Last active October 23, 2024 16:23
Show Gist options
  • Save DouglasdeMoura/dab697bd3fe1f2c8b324d4113077379a to your computer and use it in GitHub Desktop.
Save DouglasdeMoura/dab697bd3fe1f2c8b324d4113077379a to your computer and use it in GitHub Desktop.
Create git aliases that I like to use
# Git
alias g=git
alias ga='git add'
alias gaa='git add --all'
alias gb='git branch'
alias gc='git commit -m'
alias gcam='git commit -a -m'
alias gca='git commit --amend'
alias gca!='git commit --amend --no-verify'
alias gco='git checkout'
alias gcb='git checkout -b'
alias gp='git pull --prune'
alias gpo='git push origin'
alias gpo!='git push origin --force-with-lease'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment