{"id":244586,"date":"2023-08-17T08:00:23","date_gmt":"2023-08-17T15:00:23","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=244586"},"modified":"2023-08-16T10:46:54","modified_gmt":"2023-08-16T17:46:54","slug":"multi-branch-graph-available-for-general-audiences","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/multi-branch-graph-available-for-general-audiences\/","title":{"rendered":"Multi-Branch Graph Available for General Audiences"},"content":{"rendered":"<p>The power of version control comes alive when you can visualize your Git operations with the new multi-branch graph, available in 17.7 GA. In response to <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/how-do-i-view-the-history-of-all-branches-in-git\/934801\">your feedback<\/a>, we\u2019ve delivered an improved graph experience. Track all the branches, commits, and merges that arise in your git workflows by viewing multiple branches at the same time.<\/p>\n<p style=\"text-align: center;\"><iframe title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/mSZjTwv6e7s\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/visualstudio.microsoft.com\/downloads\/\" target=\"_blank\">Download the Latest Version of Visual Studio <\/a><\/div><\/p>\n<h3><strong>Leveraging the Multi-branch Graph<\/strong><\/h3>\n<p>Visualizing multiple branches empowers you to perform cross branch operations and makes it easy to understand the relationships between branches. In the past, you may have used tools like GitKraken, Sourcetree, or git log to visualize your repository history, but now, we\u2019ve brought that rich graph into Visual Studio.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2.png\"><img decoding=\"async\" class=\"alignnone wp-image-244591 size-large\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2-1024x576.png\" alt=\"Multi-branch Graph Preview\" width=\"640\" height=\"360\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2-1024x576.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2-300x169.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2-768x432.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2-1536x864.png 1536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Multi-branch-Graph-Preview-2-2048x1152.png 2048w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>When you enter the Git Repository window (View &gt; Git Repository), you can use the show\/hide icon to toggle up to five branches in the graph. The branch labels and lines are now color-coded and stacked neatly, so it\u2019s easy to trace which branch each commit belongs to. The \u201cBranches\u201d links at the top shows which branches are currently in view and allows you to quickly navigate between them. If you want to clear all the branches, use the Cleared Toggled Branches in History icon to focus on your selected branch in the list.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Clear-Toggled-Branches-in-History.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-244590\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/Clear-Toggled-Branches-in-History.png\" alt=\"Clear Toggled Branches in History\" width=\"212\" height=\"74\" \/><\/a><\/p>\n<p>The multi-branch graph is designed to help you with a variety of complex git scenarios, such as:<\/p>\n<ul>\n<li>Managing multiple feature branches and keeping them up to date with the main branch<\/li>\n<li>Exploring the repository\u2019s merge history and reviewing the changes made by other developers<\/li>\n<li>Cherry picking previous commits from other branches\n<ul>\n<li>Right-click any commit on another branch and select \u201cCherry-pick\u201d to add that commit to your currently checked out branch<\/li>\n<\/ul>\n<\/li>\n<li>Comparing specific commits across branches\n<ul>\n<li>Ctrl + select two commits across any two branches you have visualized and select \u201cCompare Commits\u201d to see a comparison window<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3><strong>Other Git Repository Window Improvements<\/strong><\/h3>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/UI-Improvements-to-Git-Repository-Window.png\"><img decoding=\"async\" class=\"alignnone wp-image-244592 size-large\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/UI-Improvements-to-Git-Repository-Window-1024x694.png\" alt=\"UI Improvements to Git Repository Window\" width=\"640\" height=\"434\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/UI-Improvements-to-Git-Repository-Window-1024x694.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/UI-Improvements-to-Git-Repository-Window-300x203.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/UI-Improvements-to-Git-Repository-Window-768x520.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2023\/08\/UI-Improvements-to-Git-Repository-Window.png 1194w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>In addition to improving the graph, we made a variety of UI improvements to the Git Repository window.<\/p>\n<ul>\n<li>Track your incoming and outgoing commits on the currently checked out branch<\/li>\n<li>See avatars for the authors in your Azure DevOps repos<\/li>\n<li>See smoother graph rendering updates<\/li>\n<li>Maximize your space by collapsing the branches panel or expanding your commit details.<\/li>\n<\/ul>\n<p><strong>Share your feedback<\/strong><\/p>\n<p>The multi-branch graph is the result of our <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/how-do-i-view-the-history-of-all-branches-in-git\/934801\">collaboration with the community<\/a>. We couldn\u2019t have delivered this feature without the feedback we received from you all in surveys, interviews, and user studies. Please let us know what you think by taking this quick survey.<\/p>\n<p><div  class=\"d-flex justify-content-center\"><a class=\"cta_button_link btn-primary mb-24\" href=\"https:\/\/aka.ms\/MultiBranchGraphFeedback\" target=\"_blank\">Take the survey<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The power of version control comes alive when you can visualize your Git operations with the new multi-branch graph, available in 17.7 GA. In response to your feedback, we\u2019ve delivered an improved graph experience. Track all the branches, commits, and merges that arise in your git workflows by viewing multiple branches at the same time. [&hellip;]<\/p>\n","protected":false},"author":98326,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[431,6758,6912],"class_list":["post-244586","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-git","tag-git-integration","tag-multi-branch-graph"],"acf":[],"blog_post_summary":"<p>The power of version control comes alive when you can visualize your Git operations with the new multi-branch graph, available in 17.7 GA. In response to your feedback, we\u2019ve delivered an improved graph experience. Track all the branches, commits, and merges that arise in your git workflows by viewing multiple branches at the same time. [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/244586","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/98326"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=244586"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/244586\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=244586"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=244586"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=244586"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}