{"id":251381,"date":"2024-11-18T07:37:56","date_gmt":"2024-11-18T15:37:56","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=251381"},"modified":"2024-11-18T07:38:50","modified_gmt":"2024-11-18T15:38:50","slug":"git-tooling-updates-in-visual-studio-17-12","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/git-tooling-updates-in-visual-studio-17-12\/","title":{"rendered":"Git tooling updates in Visual Studio 17.12"},"content":{"rendered":"<p>We are thrilled to announce the latest updates to Git tooling in Visual Studio, designed to enhance your development experience and streamline your workflow. These new features are in direct response to user feedback, ensuring that you have the tools you need to be more productive and efficient. For the full list, check out the <a href=\"https:\/\/learn.microsoft.com\/visualstudio\/releases\/2022\/release-notes-preview\">release notes<\/a>.<\/p>\n<h2>Pull request drafts and templates<\/h2>\n<p>You can now create pull request drafts and start your descriptions with GitHub templates in Visual Studio. These were the two top requests for the create a pull request experience.<\/p>\n<h3>Draft PRs<\/h3>\n<p>Use the drop-down menu on the\u00a0<strong>Create<\/strong>\u00a0button to\u00a0<strong>Create as Draft<\/strong>.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251382\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-1.png\" alt=\"Create as Draft preview menu\" width=\"504\" height=\"284\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-1.png 504w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-1-300x169.png 300w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/p>\n<h3>PR Templates<\/h3>\n<p>Your default PR template will be used when creating a new PR for both GitHub and Azure DevOps. Learn more about how to add a PR template to your repository in the\u00a0<a href=\"https:\/\/docs.github.com\/en\/communities\/using-templates-to-encourage-useful-issues-and-pull-requests\/creating-a-pull-request-template-for-your-repository\">GitHub documentation<\/a>\u00a0and\u00a0<a href=\"https:\/\/review.learn.microsoft.com\/en-us\/azure\/devops\/repos\/git\/pull-request-templates#default-pull-request-templates\">Azure DevOps documentation<\/a>.<\/p>\n<h2>Create internal GitHub repos<\/h2>\n<p>Visual Studio now supports internal repos for your GitHub organizations. We also included guidance for each type of repository to give you more clarity on the visibility of the new project depending on which account you&#8217;re using.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251383\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-2.png\" alt=\"Create a new git repo menu\" width=\"854\" height=\"616\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-2.png 854w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-2-300x216.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-2-768x554.png 768w\" sizes=\"(max-width: 854px) 100vw, 854px\" \/><\/p>\n<h2>Copy Git link<\/h2>\n<p>Whenever you share a few lines of code with a colleague, it can often be useful for them to get extra context from your repository. However, if they&#8217;re working on something else it can take too long and disrupt their work to checkout your branch.<\/p>\n<p>Now, you can highlight the code you want to share in your editor, open the context menu with a right click, and under the Git submenu get a shareable link to your code in GitHub or Azure DevOps. This makes it simple and easy to collaborate, and it smooths the flow between the IDE and your remote repos on the web.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251384\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-3.png\" alt=\"Git menu option showcasing copy GitHub permalink\" width=\"641\" height=\"360\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-3.png 641w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-3-300x168.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/p>\n<p>You can also get shareable links directly from commit history. This allows for code not currently checked out or code that exists in previous iterations to be referenced just as effortlessly.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251385\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-4.png\" alt=\"Showing git history and grabbing permalink\" width=\"1000\" height=\"568\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-4.png 1000w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-4-300x170.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-4-768x436.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/p>\n<h2>Customize AI Git commit message<\/h2>\n<p>Now you can add additional instructions to the prompt for generating your Git commit message with GitHub Copilot. This allows you to customize the commit message to better fit your workflow and team&#8217;s standards. You can specify the number of lines to generate, the length of the lines, and even provide a sample commit style. Edit the message in the\u00a0<strong>Tools &gt; Options &gt; Copilot &gt; Source Control &gt; Commit message additional instructions:<\/strong>\u00a0prompt field.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251386\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-5.png\" alt=\"showing prompt field for git commit messages\" width=\"536\" height=\"242\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-5.png 536w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-5-300x135.png 300w\" sizes=\"(max-width: 536px) 100vw, 536px\" \/><\/p>\n<h2>Git multi-repo support<\/h2>\n<p>You can now create pull requests and link work items in multi-repo scenarios. For both GitHub and Azure DevOps, we support your integrations when you use the repository picker to focus on a particular repository in your multi-repo scenarios.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251387\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-6.png\" alt=\"showcasing the filter repo option with 4 repos\" width=\"600\" height=\"338\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-6.png 600w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/11\/word-image-251381-6-300x169.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h2>Keep sharing your feedback!<\/h2>\n<p>We are continuously striving to improve and adapt to your needs, and your feedback is invaluable in this process. Thank you for your continued feedback and support. Your insights help us shape the tools and features that make your development experience more efficient and enjoyable.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are thrilled to announce the latest updates to Git tooling in Visual Studio, designed to enhance your development experience and streamline your workflow. These new features are in direct response to user feedback, ensuring that you have the tools you need to be more productive and efficient. For the full list, check out the [&hellip;]<\/p>\n","protected":false},"author":98326,"featured_media":251382,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6961,1412,155],"tags":[431,6758,6822],"class_list":["post-251381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","category-development","category-visual-studio","tag-git","tag-git-integration","tag-multi-repo"],"acf":[],"blog_post_summary":"<p>We are thrilled to announce the latest updates to Git tooling in Visual Studio, designed to enhance your development experience and streamline your workflow. These new features are in direct response to user feedback, ensuring that you have the tools you need to be more productive and efficient. For the full list, check out the [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/251381","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=251381"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/251381\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/251382"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=251381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=251381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=251381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}