I'm trying to push a project to GitHub and am following their instructions, posted below:
mkdir PyPong # Skipped mkdir and cd steps
cd PyPong # Git bash path already set
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:[username redacted]/PyPong.git
git push -u origin master # ERROR!
I've already committed all my files, created my RSA key for SSH, and configured my AP开发者_如何学编程I token. However, I still get the following problems in bash:
$ git push -u origin master
fatal: 'git@github.com/[username redacted]/PyPong.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
What am I doing wrong?
What is there in your .git/config
as url for origin?
The error seems to suggest that the url is git@github.com/user/PyPong.git
while it should be git@github.com:user/PyPong.git
精彩评论