Last active
April 10, 2022 04:54
-
-
Save leechunhoe/e3a3cfdbee94ea3d7eaceafade57f443 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Get my own git branches | |
| keyword="$(git config user.name) refs\/heads\/" | |
| git for-each-ref --format=' %(authorname) %(refname)' --sort=authorname | grep $keyword | sed "s/$(echo $keyword)//g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment