{"id":8548,"date":"2020-09-23T08:15:48","date_gmt":"2020-09-23T08:15:48","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=8548"},"modified":"2024-11-18T15:39:03","modified_gmt":"2024-11-18T15:39:03","slug":"visualize-branches-within-repo-git","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=8548","title":{"rendered":"Visualize branches (Git)"},"content":{"rendered":"<p><strong>Git command<\/strong><\/p>\n<p>All branches<\/p>\n<pre>\r\n$ git log --all --decorate --oneline --graph\r\n<\/pre>\n<p>Specific branch<\/p>\n<pre>\r\n$ git log {branch-name} --decorate --oneline --graph\r\n<\/pre>\n<hr>\n<p><strong>Output example<\/strong><\/p>\n<pre>\r\n* a1b3e33 (HEAD -> feature_3, origin\/feature_3) feature 3 - commit 1\r\n| * f0685f0 (origin\/feature_2) feature 2 - commit 2\r\n| * 9445121 feature 2 - commit 1\r\n|\/\r\n* 5f657e6 (origin\/develop, develop) develop - commit n\r\n* 50d5da6 develop - commit n-1\r\n* 936d003 develop - commit n-2\r\n| * e36e5ba (origin\/feature_1) feature 1 - commit 1\r\n|\/\r\n* 090703b develop - commit n-3\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Git command All branches $ git log &#8211;all &#8211;decorate &#8211;oneline &#8211;graph Specific branch $ git log {branch-name} &#8211;decorate &#8211;oneline &#8211;graph<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[24],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8548"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8548"}],"version-history":[{"count":4,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8548\/revisions"}],"predecessor-version":[{"id":18016,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/8548\/revisions\/18016"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8548"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}