-1
Administrator@SANZVAIO /e/projects/pySan (master)
$ git remote add pySan git@github.com:sanfx/.git

Administrator@SANZVAIO /e/projects/pySan (master)
$ git push -u origin master
The authenticity of host 'github.com (207.97.227.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the list of know
n hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

还有其他方式推送到github吗?我在 Windows 7 上使用 Git Bash。

4

1 回答 1

2
  1. 你的回购网址是错误的
  2. 您可能还有 SSH 问题。

您应该首先通过web 界面GitHub API在 GitHub 上创建一个空存储库

假设您刚刚创建了myrepo,要使用的 URL 语法是:

git remote add pySan git@github.com:sanfx/myrepo.git

如果您仍然有 SSH 错误,请检查您的公钥/私钥对,或使用 https 开始:

git remote set-url pySan https://github.com/sanfx/myrepo.git
于 2013-03-09T07:56:47.153 回答