Quantcast
Channel: User Jonathan - Stack Overflow
Viewing all articles
Browse latest Browse all 40

Answer by Jonathan for Listing each branch and its last revision's date in Git

$
0
0

Here's a variation that sorts by date and puts the branch name before the date, which I find more readable:

git branch -v --sort='-authordate:iso8601' --format='%(align:width=50)%(refname:short)%(end)%(authordate:relative)'

Outputs

upscale-zone-a-3                                  11 minutes agomaster                                            17 minutes agovalue-metric-type                                 2 days ago

Viewing all articles
Browse latest Browse all 40

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>