Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Open Visual Studio 2022.
  2. Click on "Tools" on the top menu bar.
  3. Click on "Options."
  4. In the Options window, scroll down and select "Source Control."
  5. Under "Plug-in Selection," select "Git."
  6. In the "Git Global Settings" section, click on "Manage Connections." This will open the "Git Connections" dialog box.
  7. Click on "Add."
  8. In the "Connection type" drop-down menu, select "GitHub Enterprise."
  9. Enter your Github Enterprise URL in the "Server URL" field. This is typically in the format of "https://<your organization="">.github.com."
  10. In the "Authentication" section, select "OAuth token" as the "Authentication method."
  11. Enter your Github Enterprise username and password.
  12. In the "Token Source" section, select "Use token from Visual Studio."
  13. Click "Sign in."
  14. You may be prompted to enter a two-factor authentication code if you have enabled that on your Github Enterprise account.
  15. After successful authentication, your Github Enterprise account will be added to Visual Studio 2022 as a connection.