2011-08-26 78 views
3

我已經開始在Sourceforge上的一個項目,主要是爲了試驗它是如何工作的。以下是該項目的鏈接:https://sourceforge.net/projects/tachikomawall/但是將源代碼推送到項目對我來說不起作用。我正在嘗試使用GIT來達到這個目的。下面是它返回的錯誤:Sourceforge:「...似乎不是一個混帳存儲庫」

[18:09] matachi ~/Projects/htdocs/Tachikoma-Wall $ git push origin master 
[email protected]'s password: 
fatal: '/gitroot/tachikomawall/code' does not appear to be a git repository 
fatal: The remote end hung up unexpectedly 

下面是我在終端輸入前幾行(我不認爲我忘了什麼):我想根據錯誤信息

[17:57] matachi ~/Projects/htdocs/Tachikoma-Wall $ git init 
[17:57] matachi ~/Projects/htdocs/Tachikoma-Wall $ git config user.name "MaTachi" 
[17:58] matachi ~/Projects/htdocs/Tachikoma-Wall $ git config user.email "[email protected]" 
[17:58] matachi ~/Projects/htdocs/Tachikoma-Wall $ git add . 
[17:58] matachi ~/Projects/htdocs/Tachikoma-Wall $ git commit 
[master (root-commit) 637d52b] first commit 
5 files changed, 91 insertions(+), 0 deletions(-) 
create mode 100644 README 
create mode 100644 images/bg.png 
create mode 100644 include/style.css 
create mode 100644 index.html 
create mode 100644 index.php 
[18:08] matachi ~/Projects/htdocs/Tachikoma-Wall $ git remote add origin ssh://[email protected]/gitroot/tachikomawall/code 
[18:08] matachi ~/Projects/htdocs/Tachikoma-Wall $ git config branch.master.remote origin 
[18:09] matachi ~/Projects/htdocs/Tachikoma-Wall $ git config branch.master.merge refs/heads/master 

我沒有寫出正確的存儲庫名稱。正如你可能明白的,我之前沒有使用過GIT,也沒有真正理解它是如何工作的。

+0

我認爲這個網址應該是ssh://[email protected]/gitroot/tachikomawall/tachikomawall。你應該在頁面上找到網址https://sourceforge.net/projects/tachikomawall/develop – knittl

+0

沒有工作。 :(「致命的:'/ gitroot/tachikomawall/tachikomaw所有'似乎不是一個混帳存儲庫」 –

+0

是你在https://sourceforge.net/projects/tachikomawall/develop找到的網址嗎?啓用git支持您的項目?我不認爲它默認情況下啓用 – knittl

回答

相關問題