Created
October 5, 2023 00:19
-
-
Save timle8n1/623a471b96aaade1751b63658a9be881 to your computer and use it in GitHub Desktop.
My git aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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