{"id":21092,"date":"2015-06-16T19:04:58","date_gmt":"2015-06-16T13:34:58","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=21092"},"modified":"2015-06-16T19:05:42","modified_gmt":"2015-06-16T13:35:42","slug":"finding-authors-of-all-the-remote-branches-in-a-git-repository","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/finding-authors-of-all-the-remote-branches-in-a-git-repository\/","title":{"rendered":"Finding authors of all remote branches in a git repository."},"content":{"rendered":"<p>Git is a widely adopted Version Control System known for its branching support. Recently I was required to find out all the remote branches with their author names. Upon browsing over the web I found that command <strong>git-for-each-ref<\/strong> can help me.<\/p>\n<p>Here is how I combined it with <strong>grep<\/strong> to get the desired output:<\/p>\n<p>[code]<br \/>\ngit for-each-ref &#8211;format=&#8217;%(authorname) %09 %(refname)&#8217; | grep origin<br \/>\n[\/code]<\/p>\n<p>I hope it helps.<\/p>\n<p>Cheers<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git is a widely adopted Version Control System known for its branching support. Recently I was required to find out all the remote branches with their author names. Upon browsing over the web I found that command git-for-each-ref can help me. Here is how I combined it with grep to get the desired output: [code] [&hellip;]<\/p>\n","protected":false},"author":77,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":237},"categories":[1],"tags":[1879,375],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/21092"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=21092"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/21092\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=21092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=21092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=21092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}