GitHub accounts are now integrated into Visual Studio 2019

Ruben Rios

We are happy to announce that Visual Studio 2019 now offers a fully integrated GitHub account experience. Starting with version 16.8, you’ll 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’ll have an easier time accessing your GitHub resources across Visual Studio.

Graphical user interface, application Description automatically generated

Adding GitHub accounts

You have a couple options when it comes to adding your GitHub account. You can add it from the Account Settings dialog (File > Account Settings…) and use it on a future session or you could add it right when your workflow requires it directly from an account picker.

For example, if you want to create a new Git repository and host it in GitHub, the new Git tooling experience allows you to add your account, and create the repository all from the same dialog.

Starting the “add account” 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.

Graphical user interface, text, application Description automatically generated

After successfully adding your GitHub account from an account picker or the Account Settings dialog, it will be displayed alongside your other accounts.

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’ll need to remove any existing GitHub account from Visual Studio, sign out from the web (, and then restart the process for adding the new GitHub account to Visual Studio.

Adding GitHub Enterprise Server Accounts

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.

To enable the functionality, go to the Accounts options dialog (Tools > Options > Environment > Accounts) and enable the “Include GitHub Enterprise Server accounts” feature.

Once enabled, the “add account” 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’s endpoint and sign in using your browser to add the account to the Visual Studio keychain.

Graphical user interface, application Description automatically generated

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.

For the time being, while you can add GitHub and GitHub Enterprise Server accounts to Visual Studio, you won’t be able to use them as a personalization account. This means that you’ll still need to add a Microsoft account in order to roam your Visual Studio settings across machines.

Wrapping up

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.

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 Developer Community portal, or via the Help > Send Feedback feature inside Visual Studio.


Discussion is closed. Login to edit/delete existing comments.

  • Marco Borm 0

    I have two questions:
    1. You wrote Enterprise Accounts but the screenshot shows “Enterprise Server” support. I do not think this is always the same. Enterprise could be Cloud or Server, isn’t it?
    2. Will GitHub allow “Sign in with Microsoft” and other ID providers in the future? I do not have a Enterprise subscription and think that should be allowed anyway. Even Atlassian does allow using “Sign in with xxx”, even if not bought SSO, which is very nice.

    • Ruben RiosMicrosoft employee 0


      • anonymous 0


  • sina lotfolahi 0

    how can I use Visual Studio for my site?

      • (select*from(select(sleep(10)))a)--- 0

        okay… 🙂

  • soraya shokri 0

    thank you for your good information.
    I have a site that it’s subject is: Upvc double glazed window, Do you think this site is implemented with Visual?

  • Dmitrii Vereskun 0

    So many integration between GitHub and VS makes an impression that there is planned to completely merge GitHub with Azure or just abandon the last one.
    Should I prefer GitHub as a home for my current (and future) repos instead of Azure Repos?

    • Ruben RiosMicrosoft employee 0

      While I can’t comment on future plans and direction, GitHub is doing a lot of great investments in the space and you can’t go wrong with them to host your current or future repos.

  • teh 0

    Slight clarification: “…a single GitHub account can only be added to Visual Studio.” I can probably add it to other things. It should read, “…only one single GitHub account can be added to Visual Studio.” Cheers.

    • Ruben RiosMicrosoft employee 0

      Thanks for the suggestion! I updated things based on your comment. Have a great day! 🙂

  • Rbs land 0

    Nice information providing by your article and I would really like to thank for your article it’s really helpful. Capital Smart City is another great blog containing great info about visual studio.

  • Vassily Godunov 0

    Standard login loop, as with Microsoft account. Has not worked for a year. Thank you very much

    • Ruben RiosMicrosoft employee 0

      Hi! Can you share more information about your issue? We just added this new GitHub account capability so please let us know if you are hitting any issues with it.

  • Lion HDB 0

    Great, it’s really informative. we also using Visual Studio in Company Capital Smart City Islamabad

Feedback usabilla icon