Fatal: repository not found #22000
-
Hello I cant update my repository. The message I get is: fatal: repository ‘https://github.com/aceofwings/RotairERP.git/’ not found when I enter git remote -v I get origin https://github.com/aceofwings/RotairERP.git (fetch) I havent been using git that long. I dont know what it means when one command cant find the repository another command reports. I did log into git with a different accout then sqitch back. I suspect that some part didnt switch over while another part did. Just my best guess. Before I spend hours trying to figure out this pecularity I thought best to see if someone with more knoweldge of git may know what this means. I am using windows 10 and one repository is private and the other is public, if that matters. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 20 comments 7 replies
-
That repository is probably private. Try:
|
Beta Was this translation helpful? Give feedback.
-
Yes, it is private. C:\Code86\RotairERP>git remote set-url origin https://Marvelous-Software@github.com/aceofwings/RotairERP.git C:\Code86\RotairERP>git push origin master And yes I do have rights to the repository: Is there any documentation for the error messages? Ive seen the book, https://git-scm.com/book/en/v2 But that is only useful when everything is working. I cant find any trouble shooting guides. Any assistance is appreciated. |
Beta Was this translation helpful? Give feedback.
-
Has @aceofwings added you as a collaborator on that repository? Since it is private, if they haven’t done that, you won’t be able to access the repository. Beyond that, since it is a private repository you should probably contact private support at https://github.com/contact. They will have the access to take a look at what might be going wrong. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. OK, I’ll try that. But with several days downtime, a couple of hours trying to fix the issue github appears to be too expensive as far as lost time goes to be worth using. Unless your suggestion saves the day. thanks |
Beta Was this translation helpful? Give feedback.
-
This can be closed. Since we cant use Github we have decided to use an alternate. |
Beta Was this translation helpful? Give feedback.
-
I have a similar issue to Marvelous-Software. I created/initialized a local repo (“testrepo”) in Bash/Git, added a file and did an initial commit. I tried running this command: git remote add origin https://github.com/<my-github-username>testrepo.git as well as one similar to what you suggested: git remote set-url origin https://github.com /<my-github-username>testrepo.git In both cases, the command git remote --verbose returned results that the above url (minus the .git at the end) existed for fetch and pull. However, when I go to my github account, the aforementioned repo doesn’t exist. Any suggestions? |
Beta Was this translation helpful? Give feedback.
-
@skipstevenson when you create a repo locally, GitHub has no way of knowing you did that. So you have to tell GitHub to create a repo on GitHub for you. You can do this in a few different ways, the simplest one is to go to https://github.com/new and follow the instructions. Once you’ve done that, then the remote connection you’ve defined already will work. I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
go to this url. It worked for me. |
Beta Was this translation helpful? Give feedback.
-
Thank you, this worked! Trying to set up GitHub for the first time, and I kept getting the fatal : repository not found error, despite the repository being public in GitHub. Used the command you provided, followed by push, and success. |
Beta Was this translation helpful? Give feedback.
-
The same problem is in my private repo. |
Beta Was this translation helpful? Give feedback.
-
This trick saved me big time. It turned out that I had old session state:
Once I did this, it started working again. |
Beta Was this translation helpful? Give feedback.
-
I put together a list of five different reasons why this error might happen over on TSS. You might find this helpful. |
Beta Was this translation helpful? Give feedback.
-
This worked for me, thank you! I have been using Source Control on VS Code for ages and it suddenly stopped working but this fixed it… cheers |
Beta Was this translation helpful? Give feedback.
-
I just tried
and it didn’t work |
Beta Was this translation helpful? Give feedback.
-
Works great! Then create a Personal Access Token with repo & read/write permissions (or whatever your use case is) as the password. |
Beta Was this translation helpful? Give feedback.
-
Thanks @skipstevenson for this solution. It work for me |
Beta Was this translation helpful? Give feedback.
-
Trying to push my the very first commit into my private repo: C:\TMP\New folder>git remote add origin https://github.com/glestwid/tcc.git C:\TMP\New folder>git remote --verbose set-url origin https://github.com/glestwid/tcc.git C:\TMP\New folder>git push origin master C:\TMP\New folder> I do see the repo on my page at Github but at the same time git nither asks me regarding credentials nor gives me an access. What did i do wrong? |
Beta Was this translation helpful? Give feedback.
-
Is the name of the repo |
Beta Was this translation helpful? Give feedback.
-
Just to add. If you use the old password/token for the new private repo, you need to create a new token. |
Beta Was this translation helpful? Give feedback.
-
In my case, this error was caused by authenticating with an SSH key which was uploaded to my GitHub account through the GitKraken client. I will let the GitHub support response explain the issue:
I generated a new key and added it to github according to their documentation, then configured my GitKraken client to use the local ssh-agent. From then it worked. They further explained that right now, there is no good way to learn this information yourself. Best of luck, developer from the future! |
Beta Was this translation helpful? Give feedback.
That repository is probably private. Try: