Skip to content

Instantly share code, notes, and snippets.

@timle8n1
Created October 5, 2023 00:19
Show Gist options
  • Save timle8n1/623a471b96aaade1751b63658a9be881 to your computer and use it in GitHub Desktop.
Save timle8n1/623a471b96aaade1751b63658a9be881 to your computer and use it in GitHub Desktop.
My git aliases
[alias]
co = checkout
cb = rev-parse --abbrev-ref HEAD
pup = "!git push -u origin $(git cb)"
sha = rev-parse --short HEAD
clbr = ! git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -d
pm = ! git co main && git pull && git clbr
rbm = ! git co main && git pull && git co - && git rebase main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment