我已经开始在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,也没有真正理解它是如何工作的。
我认为这个网址应该是ssh://[email protected]/gitroot/tachikomawall/tachikomawall。你应该在页面上找到网址https://sourceforge.net/projects/tachikomawall/develop – knittl
没有工作。 :(“致命的:'/ gitroot/tachikomawall/tachikomaw所有'似乎不是一个混帐存储库” –
是你在https://sourceforge.net/projects/tachikomawall/develop找到的网址吗?启用git支持您的项目?我不认为它默认情况下启用 – knittl