{"id":231249,"date":"2020-11-19T08:12:21","date_gmt":"2020-11-19T16:12:21","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=231249"},"modified":"2021-01-19T08:54:03","modified_gmt":"2021-01-19T16:54:03","slug":"github-accounts-are-now-integrated-into-visual-studio-2019","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/github-accounts-are-now-integrated-into-visual-studio-2019\/","title":{"rendered":"GitHub accounts are now integrated into Visual Studio 2019"},"content":{"rendered":"<p>We are happy to announce that Visual Studio 2019 now offers a fully integrated GitHub account experience. Starting with <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/visual-studio-2019-v16-8\">version 16.8<\/a>, you\u2019ll be able to add both GitHub and GitHub Enterprise Server accounts directly from Visual Studio. The new functionality allows you to add and leverage them just as you do with Microsoft accounts, which means that you\u2019ll have an easier time accessing your GitHub resources across Visual Studio.<\/p>\n<p><em><img decoding=\"async\" width=\"803\" height=\"579\" class=\"wp-image-231250\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/graphical-user-interface-application-description.gif\" alt=\"Graphical user interface, application Description automatically generated\" \/><\/em><\/p>\n<h2>Adding GitHub accounts<\/h2>\n<p>You have a couple options when it comes to adding your GitHub account. You can add it from the Account Settings dialog (File &gt; Account Settings\u2026) and use it on a future session or you could add it right when your workflow requires it directly from an account picker.<\/p>\n<p>For example, if you want to create a new Git repository and host it in GitHub, the new <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/announcing-the-release-of-the-git-experience-in-visual-studio\/\">Git tooling<\/a> experience allows you to add your account, and create the repository all from the same dialog.<\/p>\n<p>Starting the \u201cadd account\u201d flow will launch a new web browser window asking for your GitHub credentials. After that process completes, your GitHub account will be added to the account picker and become available for use.<\/p>\n<p><img decoding=\"async\" width=\"801\" height=\"380\" class=\"wp-image-231251\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/graphical-user-interface-text-application-descr.gif\" alt=\"Graphical user interface, text, application Description automatically generated\" \/><\/p>\n<p>After successfully adding your GitHub account from an account picker or the Account Settings dialog, it will be displayed alongside your other accounts.<\/p>\n<p><img decoding=\"async\" width=\"651\" height=\"454\" class=\"wp-image-231252\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/word-image-6.png\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/word-image-6.png 651w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/word-image-6-300x209.png 300w\" sizes=\"(max-width: 651px) 100vw, 651px\" \/><\/p>\n<p>Just like on the web and on the GitHub Desktop client, only one GitHub account can be added to Visual Studio. If you need to access resources from a different account, you\u2019ll need to remove any existing GitHub account from Visual Studio, sign out from the web (GitHub.com), and then restart the process for adding the new GitHub account to Visual Studio.<\/p>\n<h2>Adding GitHub Enterprise Server Accounts<\/h2>\n<p>Like GitHub accounts, GitHub Enterprise Server accounts can be added from both the Account Settings dialog as well as the account picker. While the functionality is similar, you first need to enable GitHub Enterprise Server support before you can add the accounts.<\/p>\n<p>To enable the functionality, go to the Accounts options dialog (Tools &gt; Options &gt; Environment &gt; Accounts) and enable the \u201cInclude GitHub Enterprise Server accounts\u201d feature.<\/p>\n<p><img decoding=\"async\" width=\"757\" height=\"266\" class=\"wp-image-231253\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/word-image-7.png\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/word-image-7.png 757w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/word-image-7-300x105.png 300w\" sizes=\"(max-width: 757px) 100vw, 757px\" \/><\/p>\n<p>Once enabled, the \u201cadd account\u201d flow will present you with a new dialog that gives you the option to log in using a GitHub Enterprise Server account. Enter the server\u2019s endpoint and sign in using your browser to add the account to the Visual Studio keychain.<\/p>\n<p><img decoding=\"async\" width=\"803\" height=\"579\" class=\"wp-image-231254\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2020\/11\/graphical-user-interface-application-description-1.gif\" alt=\"Graphical user interface, application Description automatically generated\" \/><\/p>\n<p>In contrast to GitHub accounts, you can add multiple GitHub Enterprise Server accounts to Visual Studio, as long as each account targets a different endpoint.<\/p>\n<p>For the time being, while you can add GitHub and GitHub Enterprise Server accounts to Visual Studio, you won\u2019t be able to use them as a personalization account. This means that you\u2019ll still need to add a Microsoft account in order to roam your Visual Studio settings across machines.<\/p>\n<h2>Wrapping up<\/h2>\n<p>While we are excited about these capabilities, we want to continue improving the experience and will be looking to add single sign-on (SSO), as well as other user experience fixes in a future update.<\/p>\n<p>Please let us know what you think about these capabilities and how we can further improve the experience to better fit your workflow! Send us your feedback via the <a href=\"https:\/\/developercommunity.visualstudio.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Developer Community<\/a> portal, or via the <strong>Help<\/strong> &gt; <strong>Send Feedback<\/strong> feature inside Visual Studio.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are happy to announce that Visual Studio 2019 now offers a fully integrated GitHub account experience. Starting with version 16.8, you\u2019ll be able to add both GitHub and GitHub Enterprise Server accounts directly from Visual Studio. The new functionality allows you to add and leverage them just as you do with Microsoft accounts, which [&hellip;]<\/p>\n","protected":false},"author":1092,"featured_media":231254,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[431,4381,12],"class_list":["post-231249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-git","tag-github","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>We are happy to announce that Visual Studio 2019 now offers a fully integrated GitHub account experience. Starting with version 16.8, you\u2019ll be able to add both GitHub and GitHub Enterprise Server accounts directly from Visual Studio. The new functionality allows you to add and leverage them just as you do with Microsoft accounts, which [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/231249","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\/1092"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=231249"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/231249\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/231254"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=231249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=231249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=231249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}