Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么我不能将我的gem发布到github?_Git_Github_Gem - Fatal编程技术网

为什么我不能将我的gem发布到github?

为什么我不能将我的gem发布到github?,git,github,gem,Git,Github,Gem,我在用珠宝商出版宝石。我即将把gem发布到github,现在正在发生这样的事情: $ sudo rake release Password: (in /Users/***/code/testgem) Pushing master to origin rake aborted! git push "origin" "master" 2>&1:Permission denied (publickey). fatal: The remote end hung up unexpected

我在用珠宝商出版宝石。我即将把gem发布到github,现在正在发生这样的事情:

$ sudo rake release
Password:
(in /Users/***/code/testgem)
Pushing master to origin
rake aborted!
git push "origin" "master"  2>&1:Permission denied (publickey).
fatal: The remote end hung up unexpectedly
我已验证我的SSH密钥是否正确连接到github:

$ ssh -vT git@github.com
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
[lots of stuff]

Hi *****! You've successfully authenticated, but GitHub does not provide shell access.
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0
debug1: channel 0: free: client-session, nchannels 1
Transferred: sent 2384, received 2888 bytes, in 0.1 seconds
Bytes per second: sent 37829.8, received 45827.4
debug1: Exit status 1

我在输入完问题之前就解决了这个问题:)

“rake release”不适用于sudo