我不小心为不存在的用户创建了一个 kengen。这个命令cat ~/.ssh/authorized_keys >> keydir/jpeck.pub
实际上是……我不是故意的。
我已经删除了文件rm jpeck.pub
,它肯定已经消失了。但是,当我尝试使用 SourceTree 推送提交时,出现以下错误;
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags --set-upstream origin refs/heads/master:refs/heads/master
Pushing to ssh://git@sandbox.dev:2222/dashboard.git
W access for dashboard DENIED to jpeck
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above
下一条消息Your commit succeeded but your push failed. To retry your push, use the Push toolbar button.
我为正确的用户名创建了一个注册机。而且我看不出我还需要做什么.. 我试过sudo service apache2 restart
了,但没有效果。我是安装 git 的初学者,但这是一个愚蠢的错误——我今天很累。