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 lines that I typed in the terminal before (I don’t think I forgot anything):

  • Compare about using checkout or reset hard to undo git commit
  • How to get the last commit date for a bunch of files in git?
  • Show git ahead and behind info for all branches, including remotes
  • How to prevent rebase of certain branches, such as 'master'
  • gitolite setup reverted changes
  • Is it possible to use GitHub and GitLab on one machine?
  • [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.

  • Default filters in SourceTree history
  • Is it safe to delete a fork of a GitHub repo, when the original refers to mine?
  • Using git properly
  • How can I learn to understand how Mercurial works, as an experienced git user?
  • Git merging release branches conflicts because of minor version changes
  • Yeoman angular automatic vendors JS not adding
  • One Solution collect form web for “Sourceforge: “… does not appear to be a git repository””

    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

    Git Baby is a git and github fan, let's start git clone.