Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 1 of 45

git clone is not working for a private repo

Solved! Go to Solution.

My college just created a new organization account. I created a new private repository. I got the clone string: https://github.com/MyCollege/BermudaTriange.git

Then I created a directory and changed to it. Then I tried to use 

C:\Tmp\test>git clone https://github.com/MyCollege/BermudaTriangle.git
Cloning into 'BermudaTriangle'...
remote: Repository not found.
fatal: repository 'https://github.com/MyCollege/BermudaTriangle.git/' not found

 

I know the repo exists. I can use the Github desktop to make the clone onto my computer. I know that Git is working. I ran git clone on a personal repo and it worked.

 

What is the issue?

 

44 Replies
Copilot Lvl 3
Message 2 of 45

Re: git clone is not working for a private repo

I realize the initial post has "triangle" misspelled. However I've verified that the string given to me by github is the correct one.

git clone https://github.com/MyCollege/BermudaTriangle.git

This fails.

Using the Github desktop to clone the repo, it creates the repo just fine.

If I go into this repo and type git remote -v, I get the same string as above.

Going into a new directory and using git clone with it fails.

 

 

Copilot Lvl 3
Message 3 of 45

Re: git clone is not working for a private repo

git push is also not working:

remote: Repository not found.
fatal: repository 'https://github.com/MyCollege/BermudaTriangle.git/' not found

Git desktop can push or pull changes. I cannot get the command line to work, even the dos window that Git Desktop supplied.

Ground Controller Lvl 1
Message 4 of 45

Re: git clone is not working for a private repo

Thanks, It helps :)

Solution
Copilot Lvl 3
Message 5 of 45

Re: git clone is not working for a private repo

It turned out that I had old session state:

  1. Open Control Panel from the Start menu
  2. Select User Accounts
  3. Select "Manage your credentials" in the left hand menu
  4. Delete any credentials related to Git or GitHub

 

Once I did this, it started working again.

Highlighted
Copilot Lvl 2
Message 6 of 45

Re: git clone is not working for a private repo

Perfect Thanks

Ground Controller Lvl 1
Message 7 of 45

Re: git clone is not working for a private repo

It's working.

Many thanks.

Ground Controller Lvl 1
Message 8 of 45

Re: git clone is not working for a private repo

Thanks,worked perfectly fine!! 

 

Ground Controller Lvl 1
Message 9 of 45

Re: git clone is not working for a private repo

Thanks for your answer! Do you know is there any similar solution for Mac user? 

Ground Controller Lvl 2
Message 10 of 45

Re: git clone is not working for a private repo

Go to key chain access and search for github. Change the username and password to the account you want to log in. Save it. Done!