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.

1 Like

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.

1 Like

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.

372 Likes

Perfect Thanks

4 Likes

It’s working.

Many thanks.

3 Likes

Thanks,worked perfectly fine!! 

2 Likes

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

8 Likes

Thank you, it worked for me too.

1 Like

worked on mac too!

it’s because I have set up github before…

fo mac users see:

https://uwaterloo.ca/information-systems-technology/services/nexus/nexus-troubleshooting-guide/clearing-cachedsaved-mac-os-x-credentials

2 Likes

big thanks :+1:

1 Like

Worked Thanks.

1 Like

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!

15 Likes

Thanks due to your solution my things worked out 

2 Likes

Excellent!!! I’ve searched a lot for a solution. And finally it worked :slight_smile:

Many thanks.

1 Like

Thanks. Its Working.

1 Like

It’s working perfectly. Thank you.

1 Like

You just saved my pc from my anger !

Thank you. worked for me. Magic!

1 Like

This is magic, Thank u a lot !!!

Suuuuuper Thanks bro !!!