在Apache的htdocs下創(chuàng)建一個空的 git倉庫
git --bare init myweb.git
然后在瀏覽器訪問 http://127.0.0.1/myweb.git/ 確認是可以看到文件的。
但是在git命令行下,用 git clone http://127.0.0.1/myweb.git 卻報錯
fatal: repository 'http://127.0.0.1/myweb.git/' not found
這是為何呢?
不應該是權限問題呀,clone只需要只讀權限即可。
是不是空倉庫還需要其他配置?
人生最曼妙的風景,竟是內(nèi)心的淡定與從容!
You also need to execute under htdocs/myweb.git
git update-server-info