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
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.
That repository is probably private. Try:
git remote set-url origin https://YOUR_GITHUB_USER@github.com/aceofwings/RotairERP.git
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
remote: Repository not found.
fatal: repository 'https://Marvelous-Software@github.com/aceofwings/RotairERP.git/' not found
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.
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.
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.
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.
@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!
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.