2009-08-17 30 views
6

我已經創建了一個遠程裸倉庫:無法CHDIR或不是一個Git檔案

cd ~ 
mkdir -p git/foto-fiori.git 
cd git/foto-fiori.git 
git init --bare 

然後我說的:

git remote add origin [email protected]:/home/collimarco/git/foto-fiori.git

我得到:

$ git push 
fatal: '/home/collimarco/git/foto-fiori.git': unable to chdir or not a git archive 
fatal: The remote end hung up unexpectedly

我也試圖使用〜/ git/foto-fiori.git但是相同...

我很絕望:我應該怎麼做?

回答

0

Dreamhost正在遷移到其他服務器。

1

嘗試主機名之後添加:

git add origin [email protected]:/home/collimarco/git/foto-fiori.git 

這也應該讓你跳過主目錄,即你可以說:

git add origin [email protected]:git/foto-fiori.git 
+0

我刪除舊的配置和鍵入的git遠程添加來源[email protected]:git/foto-fiori.git 但我仍然得到那個錯誤:( – collimarco 2009-08-17 14:37:55

0

我得到了完全相同的錯誤,這是因爲我在其他地方放置了遠程(裸)目錄。如果有人收到此消息,我建議只檢查遠程目錄是否存在它應該在的地方。 我期待(從collimarco以前的帖子),這是同樣的問題。