{"id":6622,"date":"2020-06-15T13:18:25","date_gmt":"2020-06-15T18:18:25","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=6622"},"modified":"2020-06-15T13:18:25","modified_gmt":"2020-06-15T18:18:25","slug":"git-show-dates-for-branches","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=6622","title":{"rendered":"Git &#8212; Show Dates For Branches"},"content":{"rendered":"<p>We wanted to see all of the branches in a repository <em>with<\/em> the dates of the latest commit:<\/p>\n<pre>git for-each-ref --sort=committerdate refs\/heads\/ --format='%(committerdate:rfc-local) %(refname:short)'<\/pre>\n<p>This outputs the full date\/time (you can use any of the git log date formats [relative|local|default|iso|rfc|short|raw] after committerdate; short for the date without time)<\/p>\n<p><a href=\"https:\/\/www.rushworth.us\/lisa\/?attachment_id=6623\" rel=\"attachment wp-att-6623\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-6623 size-full\" src=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates.png\" alt=\"\" width=\"1546\" height=\"177\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates.png 1546w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates-300x34.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates-1024x117.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates-768x88.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates-1536x176.png 1536w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2020\/06\/git-BranchesWithDates-750x86.png 750w\" sizes=\"auto, (max-width: 1546px) 100vw, 1546px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We wanted to see all of the branches in a repository with the dates of the latest commit: git for-each-ref &#8211;sort=committerdate refs\/heads\/ &#8211;format=&#8217;%(committerdate:rfc-local) %(refname:short)&#8217; This outputs the full date\/time (you can use any of the git log date formats [relative|local|default|iso|rfc|short|raw] after committerdate; short for the date without time) &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[1019,233],"class_list":["post-6622","post","type-post","status-publish","format-standard","hentry","category-coding","tag-commit-history","tag-git"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/6622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6622"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/6622\/revisions"}],"predecessor-version":[{"id":6624,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/6622\/revisions\/6624"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}