When creating a local repo and trying to push it to github
, ending up with an issue:
ERROR: Repository not found. fatal: The remote end hung up unexpectedly
My steps are standard - that what gitHub Help suggests to go with.
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin [email protected]:MyUser/my-samples.git
git push -u origin master
Then: git push -u origin master
Q: How can I push new repo/branch to the github
?
Just clarifying: I wan to create New repository from command line remotely - it does not exist yet on my github.
Basically I'm trying to perform 11th step on http://try.github.io/
Btw. when I try to use https://
instead of just [email protected]:...
(following that steps) I end up having 403 error.
If I use "ssh://"
, adding my keys on github, I end up having Repository not found error
. But that test sh -T [email protected] passes successfully,
So UPDATE: yes I've checked my connection.
You will need to create a repo on github to be able to push your changes to it. Bare repos are not initialized automatically. Otherwise spelling mistakes can lead to undesirable creation of new repos.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments