In the command line, navigate to the root directory of your project. Initialize the local directory as a Git repository. To create a repository for your project on GitHub, use the gh repo create subcommand. When prompted, select Push an existing local repository to GitHub and enter the desired name for your repository.
You might have changed your repository name
In your local repository edit the file:
.git/config
Then check:
[remote "origin"]
url =
that the URL matches your remote repository
Did you create a new repository on the http://github.com with the same name
?
If not, do it! And make sure each letter is correct and case sensitive.
In my case my github account did not have permissions to the repo. Added the github account as a collaborator for the repo and that fixed it.
This error mostly caused by WRONG URL, please check:
It looks like that's a private (or deleted) repository; if you visit the repository page while logged it'll give you the real URL, which'll probably be https://[email protected]/TeaCodie/TeaCodie-Website.git , i.e. with a username specified?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With