2014-07-12 85 views
2

我在遠程服務器public_html/ABC3的名爲ABC3的目錄中設置了git存儲庫。在使用ssh克隆git存儲庫時出錯

git init 

我想克隆存儲庫到我的本地計算機。這是我做的:cd到哪裏我想工作的目錄,說Desktop/GitFun,然後我嘗試用下面的命令

git clone [email protected]:/public_html/ABC3.git 

克隆輸入我的密碼後,我找回了錯誤

fatal: '/public_html/ABC3.git' does not appear to be a git repository 
fatal: Could not read from remote repository. 

我做對了嗎? ABC3是目錄的名稱,對嗎?

可能很重要:我正在使用Bluehost共享服務器。在他們的網站上他們提到在VPS或私人服務器上安裝GIT,但在共享服務器上沒有任何關於它的信息。當我git --version我得到一個積極的迴應,1.7.11.3。建議?

回答

0

這個答案可能是爲他人,其Git代碼庫有用不public_html

如果您創建裸回購在這裏:

cd ~ 
mkdirs git/myapp.git 
cd git/myapp.git 
git init --bare 

你可以嘗試(注意使用的~代替/home/myusername

git clone [email protected]:~/git/myapp.git 

如果這仍然不起作用,我也加入了來自herehere的建議