Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to connect my GitHub Enterprise Account with Visual Studio Code

I want to know if it's possible to connect my github enterprise account of my organization to vs code, and if so how?

I know how to sign in with a normal github account on vs code but it doesn't work for github enterprise. I already looked up online but couldn't find any answers.

In the vs code settings there is an option called github enterprise: Uri. I put there the url of my github organization "github.organizationname.com" but I don't know what else I need to do.

like image 806
Cicciopasticcio Avatar asked Sep 03 '25 04:09

Cicciopasticcio


1 Answers

Here's what worked for me on vs code 1.62.3.

  1. Clone the GitHub Enterprise repo outside of vs code (ie, using git cli in a terminal or GitHub Desktop).

  2. In vs code, open the folder containing the cloned repo.

  3. And just like magic, it works. If you click on the source control tab in vs code, you can pull changes and make commits. Actually, it might not work quite yet if your cloned project doesn't have your personal access token saved. If you need to do that, you can find instructions in this answer to a different question

like image 165
jpobst Avatar answered Sep 04 '25 21:09

jpobst