Created
March 22, 2018 02:36
-
-
Save npatmaja/be6af05510a7b09f108df192deb6db01 to your computer and use it in GitHub Desktop.
Git alias to sort remote branches based on last updated time desc
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
blremotesorted = "!for branch in `git branch -r | grep -v HEAD`;do echo `git show --format=\"%ci %cr %an\" $branch | head -n 1` \t$branch; done | sort -r" | |
blremotesortedcsv = "!for branch in `git branch -r | grep -v HEAD`;do echo `git show --format=\"%ci,%cr,%an\" $branch | head -n 1`,$branch; done | sort -r" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment