2012-01-23 15 views
0

作成トライアル

$ mkdir Test; cd Test; git init 
$ echo "Just dummy test file" > test1; git add . 
$ git commit -m "cloning soon through http, this repo is in public_html -dir" 
$ pwd 
/users/hhh/public_html 

を-repoそして今

$ git clone http://mysite.com/hhh/Test/ 
Cloning into Test... 
fatal: http://mysite.com/hhh/Test/info/refs not found: did you run git update-server-info on the server? 
$ git update-server-info 
$ git clone http://mysite.com/hhh/Test/ 
Cloning into Test... 
fatal: http://mysite.com/hhh/Test/info/refs not found: did you run git update-server-info on the server? 

は、どのように私はそのようなレポのクローンを作成することができ、それのクローンを作成しようとしている.git?

+2

サーバから 'git update-server-info'を実行していますか?あなたの説明から明らかではありません –

+0

@DorShemer:はい私はリポジトリを持っているサーバーでコマンドを実行しています。リポジトリはpublic_html -dirにあり、そこからクローンを作成しようとしています。 – hhh

+0

'http:// mysite.com /'はホスト自体から適切に解決されますか? – Romain

答えて

関連する問題