Skip to content

Instantly share code, notes, and snippets.

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 toastynerd/e030a048c350ec61adbe6b62ceaaa978 to your computer and use it in GitHub Desktop.
Save toastynerd/e030a048c350ec61adbe6b62ceaaa978 to your computer and use it in GitHub Desktop.
git aliasess
alias rmorphans='git branch --merged| egrep -v "(^\*|main)" | xargs git branch -d'
alias gitbranchups='git branch --set-upstream-to=origin/$(git branch --show-current) $(git branch --show-current)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment