I can't connect to a remote private repo in vscode on Mac #66813
-
Select Topic AreaQuestion BodyI have two GitHub accounts - one with my college, and one personal for business purposes. I have a private repo on each, let's refer to them as college repo and personal repo. I created both of them on my windows pc. I am able to connect to the college repo on my Mac by going into the vscode console and doing git init, git remote add origin college-repo-url, and then git pull. This works. When I do the same on my personal repo, it does not. When I type git pull, it says that the repo is not found, which is very weird. git remote -v shows me that it IS there. But I do not know what the difference is between my personal repo and my college repo that I can pull the college one but not the personal one. These are both private repos. Google searches have yielded no results either. I deleted all traces of GitHub from keychain access to no avail. SOS. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @jaliubusiness,For you to be able to access a private repo that is not yours, you have to at least be a collaborator on that repo. Github sees this two different Github accounts as two different users. Go to settings > collaborators:
|
Beta Was this translation helpful? Give feedback.
Hi @jaliubusiness,
For you to be able to access a private repo that is not yours, you have to at least be a collaborator on that repo. Github sees this two different Github accounts as two different users.
Go to settings > collaborators: