გააზიარეთ მეშვეობით


Add your GitHub accounts to your Visual Studio keychain

Add a GitHub account from the Account settings dialog

Enable GitHub enterprise accounts

By default, Visual Studio only has public GitHub accounts enabled. Use the following steps to add a GitHub Enterprise Server account or an account associated with .ghe.com endpoints.

Add GitHub Enterprise Managed User (EMU) accounts

You can add your GitHub EMU account as follows:

Manage accounts using the Account Settings dialog

Note

Ensure you enter your GitHub EMU account credentials (the username has an underscore followed by the company name) on this page.

Screenshot showing the GitHub sign in experience for the GitHub Enterprise Managed User account.

After you sign in, you'll get a success window in the browser, and you can return to Visual Studio.

Screenshot showing the sign-in success window in the browser.

Remove an account

Troubleshooting sign in issues

If you're experiencing issues when adding or re-authenticating GitHub accounts, try the following steps:

HTTP Strict Transport Security (HSTS) issues

Verify that HTTP Strict Transport Security (HSTS) is not enabled for localhost on your system's default web browser:

  • On Microsoft Edge, you can type: edge://net-internals/#hsts and enter localhost under the Delete domain security policies section.
  • On Google Chrome, type: chrome://net-internals/#hsts and enter localhost under the Delete domain security policies section.

Run-as issues

Running Visual Studio using an account that doesn't match your signed-in Windows account, may cause issues when adding GitHub accounts to Visual Studio. You may encounter this issue when using 3rd party products that attempt to run Visual Studio elevated.

You can verify the user by following these steps:

  1. Open the Task Manager
  2. Navigate to the Details tab
  3. Search for the devenv.exe process
  4. Ensure the username for that process matches the signed in Windows Account

To fix this, run Visual Studio as the user you're signed into Windows with, and then add your GitHub account.

Note

Please report a problem if you're still experiencing sign in issues.