0

存在しないユーザーのケンゲンを誤って作成してしまいました。コマンドは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 のインストールの初心者ですが、愚かな間違いを犯すこともありました。今日はとても疲れています。

4

1 に答える 1

0

わかりました、問題は解決しました。私は実際に変更をコミットしてgitにプッシュしていませんでした。これらのコマンドはそれを行いました。

git commit -a -m "Adding gitweb permissions"
git push

すると、git で jpeck keygen ファイルが削除されたというメッセージが表示されました。次に、以前と同じように SourceTree を使用しようとすると、エラーは発生しませんでした。

于 2015-02-10T13:23:30.390 に答える