kreamik
kreamik

Reputation: 627

i cannot push to my new remote server GIT in windows 7

I created one Git server on Win7 with SSHD held by WinSSH,

i built remote git there with syntax

ssh [email protected]
cd GitRepo/GitCRM/
git --bare init
exit

i can do scp with syntax

scp myFile [email protected]:GitRepo/GitCRM/

but i always got failed when do this:

git push [email protected]:GitRepo/GitCRM/ master

error message is :

fatal : ''GitRepo/GitCRM/'' does not appear to be a git repository
fatal : the remote end hung up enexpectedly

what should i fix?

== UPDATE == i install cygwin within openSSH to work as my new SSH server and all work fine

Upvotes: 1

Views: 488

Answers (1)

VonC
VonC

Reputation: 1328342

Even if ssh connects to your HOME, git might still need the full path:

git push [email protected]/home/YourLogin/GitRepo/GitCRM/ master

(and you are right to use GitCRM here, not GitCRM.git: since you have created a bare repo within GitCRM/, that directory is its own '.git')


Regarding SSH server, the OP kreamik went with an OpenSSH with Cygwin, easier to setup than a WinSSH.

Upvotes: 1

Related Questions