Cygwin Git cant' Sync File Based repository
Corinna Vinschen
corinna-cygwin@cygwin.com
Tue Oct 17 08:08:00 GMT 2017
Please don't top-post.
On Oct 16 13:35, Gary Furash wrote:
> On Mon, Oct 16, 2017 at 1:09 PM, Gary Furash <furashgary@gmail.com> wrote:
>
> > From windows GIT
> >
> > [gffurash ~] $ git --version
> > git version 2.14.2.windows.3
> > [gffurash ~] $ which git
> > /mingw64/bin/git
> > [gffurash ~] $
> >
> > From Cygwin GIT
> >
> > [gffurash ~] $ git --version
> > git version 2.14.2
> > [gffurash ~] $ which git
> > /usr/bin/git
> > [gffurash ~] $
> >
> >
> > in each case they're referring to a different root: the former
> > C:\Progra~1\Git and the latter C:\Cygwin64
> >
> I think the issue IMHO is that when you use a *file* based repository git
> stores the file path in a certain way, and Cygwin64's git gets confused.
No, that's not Cygwin git's fault. The problem is that you're using
Windows paths which only work in Git for Windows:
> [gffurash ~/Documents/Projects/wo219161] $ git remote -v
> origin file://v:/GitSrcCtrl/wo219161 (fetch)
> origin file://v:/GitSrcCtrl/wo219161 (push)
Change this to:
$ git remote set-url origin file:///cygdrive/v/GitSrcCtrl/wo219161
or better, because this continues to work even after changing the
cygdrive path prefix:
$ git remote set-url origin file:///proc/cygdrive/v/GitSrcCtrl/wo219161
POSIX-like paths should work in both git versions.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20171017/01a7ce3d/attachment.sig>
More information about the Cygwin
mailing list