Created
March 24, 2024 20:47
-
-
Save phdesign/cf475812d5a33ebb00b3d894354d1df3 to your computer and use it in GitHub Desktop.
Handy git alias commands
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] | |
prune-gone = !git remote prune origin && git branch -v | grep gone | awk '{print $1}' | xargs git branch -D | |
recent = !git for-each-ref --sort='-authordate:iso8601' --format='%(authordate:relative)%09%(refname:short)' refs/heads | head -15 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also,
to switch back to last branch.