,你有你的遥控器列表队友这个问题是有关我的问题在understanding rebase, branch and merge, 和无法Git的推高手Github上
你怎么能保证你的github帐户的问题?
我发现other people有同样的问题。 这个问题似乎与/etc/xinet.d/有关。
问题:无法在Github上我的本地分支推到我的主分支
我跑
git push origin master
我得到
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
该错误信息显示我的分支'origin'不在我的本地git仓库中。这样,Git停止连接到Github。
这很奇怪,因为我没有删除分支的“起源”。
我的git树是
dev
* master
ticgit
remotes/Math/Math
remotes/Math/master
remotes/origin/master
remotes/Masi/master
你怎么可以把你的本地分行Github上,而你在本地的Git有队友的分支?
VonC的答案解决了主要问题。 我把通行证放到了我的ssh密钥中。
我跑
$git push github master
我得到
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
看来,我需要给GIT中的密码莫名其妙。
如何让Github请求您的密码而不是依赖于ssh密钥?
刚刚更新了我的答案。Ssh参数不是全部。 user.name和github.user也很重要 – VonC 2009-05-28 20:15:25
再次更新我的答案,还有一些更多的ssh配置检查 – VonC 2009-05-29 04:08:56
“Permission denied(publickey)”。实际上意味着您尝试使用您的公钥进行登录,并且权限被拒绝,而不是被允许访问您的公钥。 – 2009-10-06 22:38:46