Skip to content

Instantly share code, notes, and snippets.

@bradleymarques
Created January 6, 2023 10:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradleymarques/e5848f692813d2dd461dade0b9b0af13 to your computer and use it in GitHub Desktop.
Save bradleymarques/e5848f692813d2dd461dade0b9b0af13 to your computer and use it in GitHub Desktop.
zshrc git aliases
alias gs="git status"
alias gpush="git push origin"
alias gpull="git pull origin"
alias glog="git log"
alias gaa="git add --all"
alias gcm="git commit -m"
alias gfap="git fetch --all --prune"
alias gclean="git branch --merged >/tmp/merged-branches && \
vi /tmp/merged-branches && xargs git branch -d </tmp/merged-branches"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment