{"id":40785,"date":"2018-03-06T10:00:01","date_gmt":"2018-03-06T10:00:01","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/devops\/?p=40785"},"modified":"2019-02-14T15:50:14","modified_gmt":"2019-02-14T23:50:14","slug":"new-git-features-in-vs2017-update-6","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/devops\/new-git-features-in-vs2017-update-6\/","title":{"rendered":"New Git Features in Visual Studio 2017 Update 6"},"content":{"rendered":"<p>This week we released Visual Studio 2017 Update 6. In this release, you can now push, delete, and view all of the <a href=\"https:\/\/docs.microsoft.com\/en-us\/vsts\/git\/how-to\/git-tags?tabs=visual-studio&amp;sourceid=chrome&amp;ie=UTF-8\">Git tags<\/a> in your repository. Additionally, if you use <a href=\"https:\/\/www.visualstudio.com\/team-services\/\">Visual Studio Team Services<\/a>\u00a0(VSTS), you can checkout <a href=\"https:\/\/docs.microsoft.com\/en-us\/vsts\/git\/pull-requests\">pull request<\/a>\u00a0branches making it easier to review, test, and build changes. To learn more about what else is new in Visual Studio 2017 Update 6, check out the\u00a0<a href=\"https:\/\/www.visualstudio.com\/en-us\/news\/releasenotes\/vs2017-relnotes\">Visual Studio release notes<\/a>.<\/p>\n<h3>Git tags<\/h3>\n<p>One of our top requested features on UserVoice was to be able to <a href=\"https:\/\/visualstudio.uservoice.com\/forums\/121579-visual-studio-ide\/suggestions\/10189500-support-the-ability-to-push-git-tags-to-remote\">push tags<\/a>. Now, in addition to being able to push tags, you can view all of the tags in your repo, create, delete, and create a new branch from tags. Both annotated and\u00a0lightweight tags are supported.<\/p>\n<p>To view all of the tags in your repo, select <strong>Tags<\/strong> from the Team Explorer home page.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2018\/03\/navigate-tags-pane-vs.png\" alt=\"Tags button\" \/><\/p>\n<p>Hovering on an annotated tag will show a tooltip with the tag name, tagger, tag date, and message; lightweight tags show only the tag name.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2018\/03\/tag-style-vs.png\" alt=\"View tags\" \/><\/p>\n<p>At the top of the page, you&#8217;ll see commands to create a new tag, push all tags, and create a new branch from a tag. To learn more, visit our <a href=\"https:\/\/docs.microsoft.com\/en-us\/vsts\/git\/how-to\/git-tags?tabs=visual-studio&amp;sourceid=chrome&amp;ie=UTF-8\">documentation on tags in Visual Studio<\/a>.<\/p>\n<h3>Checkout a VSTS pull request<\/h3>\n<p>You can now easily checkout VSTS pull request branches in Visual Studio. This feature makes it easier to <a href=\"https:\/\/docs.microsoft.com\/en-us\/vsts\/git\/pull-requests#review-a-pull-request\">review pull requests<\/a> and test and build changes without leaving Visual Studio.<\/p>\n<p>To checkout a pull request branch, select <b>Pull Requests\u00a0<\/b>from the Team Explorer home page.\u00a0Right-click on the desired pull request and choose <strong>Checkout Source Branch<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/devops\/wp-content\/uploads\/sites\/6\/2018\/03\/checkout-pr-source-branch.png\" alt=\"Checkout source branch\" \/><\/p>\n<p>Visual Studio will fetch the branch, create a tracking branch if needed, and then checkout the branch. This feature works for pull requests between two branches in the same repository and pull requests between a fork repository and its parent repository.<\/p>\n<p>To make sure that your local branches list remains up-to-date and doesn&#8217;t list pull request branches that have been deleted, we recommend that you <a href=\"https:\/\/docs.microsoft.com\/en-us\/vsts\/git\/concepts\/git-config?tabs=visual-studio#prune-remote-branches-during-fetch-fetchprune\">set all Git fetches to prune<\/a>.<\/p>\n<p><span>As always, please leave your feedback in the comments, on\u00a0<\/span><a href=\"https:\/\/visualstudio.uservoice.com\/forums\/121579-visual-studio-ide?category_id=179119\">UserVoice<\/a><span>, or Report a Problem in the top right of Visual Studio.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week we released Visual Studio 2017 Update 6. In this release, you can now push, delete, and view all of the Git tags in your repository. Additionally, if you use Visual Studio Team Services\u00a0(VSTS), you can checkout pull request\u00a0branches making it easier to review, test, and build changes. To learn more about what else [&hellip;]<\/p>\n","protected":false},"author":211,"featured_media":45953,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,225],"tags":[],"class_list":["post-40785","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-git"],"acf":[],"blog_post_summary":"<p>This week we released Visual Studio 2017 Update 6. In this release, you can now push, delete, and view all of the Git tags in your repository. Additionally, if you use Visual Studio Team Services\u00a0(VSTS), you can checkout pull request\u00a0branches making it easier to review, test, and build changes. To learn more about what else [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/40785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/users\/211"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/comments?post=40785"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/posts\/40785\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media\/45953"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/media?parent=40785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/categories?post=40785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/devops\/wp-json\/wp\/v2\/tags?post=40785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}