开发者

Sourceforge: "... does not appear to be a git repository"

I have started a project on Sourceforge, mainly for trying out how it works. Here is a link to the project: https://sourceforge.net/projects/tachikomawall/ But pushing the source code to the project doesn't work for me. I'm trying to use GIT for the purpose. Here is the error it returns:

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

Here are some lin开发者_运维问答es that I typed in the terminal before (I don't think I forgot anything):

[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 "matachi@users.sourceforge.net"
[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://matachi@tachikomawall.git.sourceforge.net/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

I guess according to the error message that I haven't written the correct repository name. As you may understand, I haven't used GIT before and doesn't really understand how it works yet.


I had the same problem and saw the comments on your question. Just for clarification's sake:

The guide on https://sourceforge.net/apps/trac/sourceforge/wiki/Git is wrong.

Don't clone/pull/push from:

ssh://USERNAME@PROJECTNAME.git.sourceforge.net/gitroot/PROJECTNAME/REPONAME

Instead, do it from:

ssh://USERNAME@git.code.sf.net/p/PROJECTNAME/REPONAME

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜