开发者

Pushing to GitHub

开发者 https://www.devze.com 2023-03-31 18:34 出处:网络
I\'m trying to push a project to GitHub and am following their instructions, posted below: mkdir PyPong # Skipped mkdir and cd steps

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

0

精彩评论

暂无评论...
验证码 换一张
取 消