Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
[email protected]'s password: 
fatal: '/gitroot/tachikomawall/code' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Here are some lines 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 "[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

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.

like image 431
Daniel Jonsson Avatar asked Feb 23 '26 08:02

Daniel Jonsson


1 Answers

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://[email protected]/gitroot/PROJECTNAME/REPONAME

Instead, do it from:

ssh://[email protected]/p/PROJECTNAME/REPONAME

like image 136
alexdantas Avatar answered Feb 26 '26 01:02

alexdantas