Note that there are some explanatory texts on larger screens.

plurals
  1. POGit push/pull paths not working to windows origin running msysgit + cygwin sshd
    primarykey
    data
    text
    <p>In trying to resolve the issue I was having for: <a href="https://stackoverflow.com/questions/9198397/managing-website-on-windows-using-git">managing website on windows using git</a>, I installed Cygwin openssh and Git for Windows (msysgit) on a Windows 2008 server (let's call this <code>myserver</code>).</p> <p>I have a bare git repo setup at the cygwin path <code>/var/git/example.git</code>, which maps to <code>c:\cygwin\var\git\example.git</code> on Windows.</p> <p>I have a user <code>git</code> that has permission on the repo's folders.</p> <p>I am able to login with <code>git</code> using key-based authentication to <code>myserver</code> from my XP workstation using Putty. I have the key opened in pageant.</p> <p>I am able to use cygwin style paths in Putty, so for example <code>cd /var/git/example.git</code> gets me to my bare repo.</p> <p>However, I have a problem when I use Git Bash (MingW32) and attempt to do:</p> <pre><code>git clone ssh://git@myserver/var/git/example.git </code></pre> <p>I get the response:</p> <pre><code>Cloning into example... fatal: '/var/git/example.git' does not appear to be a git repository fatal: The remote end hung up unexpectedly </code></pre> <p>When I try:</p> <pre><code>git clone ssh://git@myserver:c:/cygwin/var/git/example.git </code></pre> <p>It works and the repo gets cloned.</p> <pre><code>Cloning into example... remote: Counting objects: 384, done. remote: Compressing objects: 100% (288/288), done. remote: Total 384 (delta 85), reused 359 (delta 73) Receiving objects: 100% (384/384), 51.72 MiB | 201 KiB/s, done. Resolving deltas: 100% (85/85), done. </code></pre> <p>However, if I then try to push using:</p> <pre><code>cd example git push </code></pre> <p>It fails:</p> <pre><code>git: '/cygwin/var/git/example.git' is not a git command. See 'git --help'. fatal: The remote end hung up unexpectedly </code></pre> <p>So how do I make this work so I can push/pull/clone? Ideally I would like to be able to use the Cygwin path style, eg. <code>git clone ssh://git@myserver/var/git/example.git</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload