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 git@github.com: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 git@github.com:...
(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 git@github.com passes successfully,
So UPDATE: yes I've checked my connection.