Clone funktioniert, Remote Push nicht. Remote-Repository über copssh

Ich habe "einen-msysgit-Server-mit-copssh-unter-Windows" eingerichtet, nach Tim Davis 'leite und ich lernte jetzt, wie man die git-Befehle benutzt, nach Jason Meridthsleite, und ich habe es geschafft, alles zum Laufen zu bringen, aber jetzt kann ich den Push-Befehl nicht weitergeben.

Ich habe den Server und den Client (vorerst) auf demselben Computer eingerichtet, win7-x64.

Hier gibt es ein paar Infos, wie die Dinge eingerichtet sind:

CopSSH Folder     : C:/SSH/
Local Home Folder : C:/Users/rvc/
Remote Home Folder: C:/SSH/home/rvc/          # aka /cygdrive/c/SSH/home/rvc/
git remote rep    : C:/SSH/home/rvc/myapp.git # empty rep

At '/SSH/home/rvc/.bashrc' und 'Users / rvc / .bashrc':

export HOME=/cygdrive/c/SSH/home/rvc
gitpath='/cygdrive/c/Program Files (x86)/Git/bin'    
gitcorepath='/cygdrive/c/Program Files (x86)/Git/libexec/git-core'
PATH=${gitpath}:${gitcorepath}:${PATH}

So, das Klonen funktioniert (alles wird unter "Git Bash here" erledigt: P):

rvc@RVC-DESKTOP /c/code
$ git clone ssh://[email protected]:5858/SSH/home/rvc/myapp.git
Initialized empty Git repository in C:/code/myapp/.git/
warning: You appear to have cloned an empty repository.

rvc@RVC-DESKTOP /c/code
$ cd myapp

rvc@RVC-DESKTOP /c/code/myapp (master)
$ git remote -v
origin  ssh://[email protected]:5858/SSH/home/rvc/myapp.git (fetch)
origin  ssh://[email protected]:5858/SSH/home/rvc/myapp.git (push)

Dann erstelle ich eine Datei:

rvc@RVC-DESKTOP /c/code/myapp (master)
$ touch test.file

rvc@RVC-DESKTOP /c/code/myapp (master)
$ ls
test.file

Versuche es zu pushen und erhalte diesen Fehler:

rvc@RVC-DESKTOP /c/code/myapp (master)
$ git add test.file

rvc@RVC-DESKTOP /c/code/myapp (master)
$ GIT_TRACE=1 git push origin master
trace: built-in: git 'push' 'origin' 'master'
trace: run_command: 'C:\Users\rvc\bin\plink.exe' '-batch' '-P' '5858' '[email protected]
68.1.65' 'git-receive-pack '\''/SSH/home/rvc/myapp.git'\'''
git: '/SSH/home/rvc/myapp.git' is not a git command. See 'git --help'.
fatal: The remote end hung up unexpectedly

"git: '/SSH/home/rvc/myapp.git' ist kein git-Befehl. Siehe 'git --help'." .. was?!

BEARBEITEN RAAAGE !!

Ich habe wieder das gleiche Problem, aber jetzt mit ssh:

rvc@RVC-DESKTOP /c/code/myapp (master)
$ GIT_TRACE=1 git push
trace: built-in: git 'push'
trace: run_command: 'ssh' '-p' '5858' '[email protected]' 'git-receive-pack '\''/
SSH/home/rvc/myapp.git'\'''
git: '/SSH/home/rvc/myapp.git' is not a git command. See 'git --help'.
fatal: The remote end hung up unexpectedly

Ich habe versucht GUI Push und zeigt die gleiche Meldung.

git: '/SSH/home/rvc/myapp.git' is not a git command. See 'git --help'.
Pushing to ssh://[email protected]:5858/SSH/home/rvc/myapp.git
fatal: The remote end hung up unexpectedly

Hier sind die Strömungen .bashrc:

C: \ Users \ rvc.bashrc (Ich denke, dies wird nur von Cygwin / Git Bash verwendet):

export HOME=/c/SSH/home/rvc

gitpath='/c/Program Files (x86)/Git/bin'

gitcorepath='/c/Program Files (x86)/Git/libexec/git-core'
export GIT_EXEC_PATH=${gitcorepath}

PATH=${gitpath}:${gitcorepath}:${PATH}

C: \ SSH \ home \ rvc.bashrc (.. und dies wird verwendet, wenn git über ssh eine Verbindung zum "entfernten" Server herstellt):

export HOME=/c/SSH/home/rvc

gitpath='/cygdrive/c/Program Files (x86)/Git/bin'

gitcorepath='/cygdrive/c/Program Files (x86)/Git/libexec/git-core'
export GIT_EXEC_PATH=${gitcorepath}

PATH=${gitpath}:${gitcorepath}:${PATH}

EDIT 2: Einige zusätzliche Informationen:

rvc@RVC-DESKTOP /c/code/myapp (master)
$ ssh -p 5858 [email protected] git-receive-pack /SSH/home/rvc/myapp.git
git: '/SSH/home/rvc/myapp.git' is not a git command. See 'git --help'.


EDIT 3:

rvc@RVC-DESKTOP /c/code/myapp (master)
$ git push --receive-pack='git receive-pack' ssh://[email protected]:5858/SSH/home/rvc/myapp.git --a
ll
Counting objects: 3, done.
Writing objects: 100% (3/3), 202 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
To ssh://[email protected]:5858/SSH/home/rvc/myapp.git
 * [new branch]      master -> master

Hat das den Trick getan ??

git push führt 'git-receive-pack' aus und sollte 'git receive-pack' sein?

Meine Git-Version ist 'Git-Version 1.7.0.2.msysgit.0'

Antworten auf die Frage(8)

Ihre Antwort auf die Frage