2017-01-24 14 views
0

enter image description hereGit:私のリモートURLは何ですか?

私は地元のGitのレポを持っている、と私は「gitrepo」での(非裸の)レポ(スクリーンショット)を初期化した新しいサーバーにプッシュgitのしたいと思います。ローカル私が持っている:

repo ssh://[email protected]/gitrepo (fetch) 
repo ssh://[email protected]/gitrepo (push) 

私は:

$ git push repo myproject 
.... 
debug1: Authentication succeeded (password). 
debug1: Requesting [email protected] 
debug1: Entering interactive session. 
debug1: client_input_global_request: rtype [email protected] want_reply 0 
debug1: Sending command: git-receive-pack '/gitrepo' 
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 
debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0 
fatal: '/gitrepo' does not appear to be a git repository 
debug1: channel 0: free: client-session, nchannels 1 
Transferred: sent 2836, received 2588 bytes, in 0.3 seconds 
Bytes per second: sent 9421.9, received 8598.0 
debug1: Exit status 128 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

は私が間違ったURLにプッシュするのですか?

答えて

2

ルートディレクトリに/gitrepoがあります。 sshの対象ユーザのホームディレクトリを基準にして表示させるには、

1

間違ったURLにプッシュしていますか?

はい。ここでは、ssh debug gobbledygookの重要な行があります。

fatal: '/gitrepo' does not appear to be a git repository 

あなたはSSHで正常にログインしていますが、あなたのURLは間違っています。私は正しいURLが何であるか言うことはできません。あなたは間違ったパスを持つことができます、あなたは間違ったホストを持つことができます。パスには最後に.gitが必要な場合があります。あなたはプロジェクトの誰かに尋ねるべきです。

関連する問題