* Using Git with windows
[not found] <e878dbad0903052321l6c0d310bk2ba568138b409d36@mail.gmail.com>
@ 2009-03-06 7:23 ` Tariq Hassanen
2009-03-06 8:16 ` John Chapman
2009-03-06 14:38 ` Tim Visher
0 siblings, 2 replies; 12+ messages in thread
From: Tariq Hassanen @ 2009-03-06 7:23 UTC (permalink / raw)
To: git
Hi all,
I know there are some ports for it on windows such as msysGit and it
can also be done on Cygwin.
But is there a way around this if i run a linux VM with Git running
and mount a windows ntfs partition ?
Im trying to keep the power of Git running on linux and the ability to
use Git for .NET apps
Any ideas? Or am i best sticking with SVN until the ports are mature enough?
Tariq
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 7:23 ` Using Git with windows Tariq Hassanen
@ 2009-03-06 8:16 ` John Chapman
2009-03-06 10:59 ` Johannes Schindelin
2009-03-06 14:38 ` Tim Visher
1 sibling, 1 reply; 12+ messages in thread
From: John Chapman @ 2009-03-06 8:16 UTC (permalink / raw)
To: Tariq Hassanen; +Cc: git
(Hmm, don't know why evolution didn't quote the message...)
Tariq, while git is heaps nicer and better on Linux, it works quite well
on windows as well, and is reasonably mature.
Just be sure to be aware of autocrlf, and that on windows with msysgit,
it is enabled by default.
- Also, if you use the cygwin version instead, be aware that applying
patches, etc, can get /funky/ when cygwin is using unix line endings,
but your development environment doesn't. Again, be very aware of line
endings.
Unless you think your repository will become larger than 2GB (Not
likely), then msysgit will do just fine.
Running git under linux in vmware will be faster, but not worth the
bother, in my opinion.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 8:16 ` John Chapman
@ 2009-03-06 10:59 ` Johannes Schindelin
0 siblings, 0 replies; 12+ messages in thread
From: Johannes Schindelin @ 2009-03-06 10:59 UTC (permalink / raw)
To: John Chapman; +Cc: Tariq Hassanen, git
Hi,
On Fri, 6 Mar 2009, John Chapman wrote:
> Just be sure to be aware of autocrlf, and that on windows with msysgit,
> it is enabled by default.
>
> [...]
>
> Unless you think your repository will become larger than 2GB (Not
> likely), then msysgit will do just fine.
Both issues will be addressed in the next Git for Windows installer.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 7:23 ` Using Git with windows Tariq Hassanen
2009-03-06 8:16 ` John Chapman
@ 2009-03-06 14:38 ` Tim Visher
2009-03-06 15:30 ` Dmitry Potapov
` (2 more replies)
1 sibling, 3 replies; 12+ messages in thread
From: Tim Visher @ 2009-03-06 14:38 UTC (permalink / raw)
To: Tariq Hassanen; +Cc: git
On Fri, Mar 6, 2009 at 2:23 AM, Tariq Hassanen <tariq.hassanen@gmail.com> wrote:
> I know there are some ports for it on windows such as msysGit and it
> can also be done on Cygwin.
IMHO, Git under cygwin's pretty nice. I tried using MSysGit as well
and didn't feel like it was quite as good as just building Git under
cygwin. I also run Git on an Mac at home and while it's clearly
faster, Git under Cygwin still beats the pants off of SVN under
Cygwin.
> But is there a way around this if i run a linux VM with Git running
> and mount a windows ntfs partition ?
Would this really be faster? I don't have a whole lot of experience
with virtualization, but isn't Cygwin 'basically' doing this already?
I mean, it's attempting to emulate linux system calls so that linux
software can be recompiled to run on o a Windows box.
> Any ideas? Or am i best sticking with SVN until the ports are mature enough?
> Tariq
I wouldn't bother waiting. Git is plenty mature on Windows, either
via msys or via Cygwin. There's no real reason to delay. :)
--
In Christ,
Timmy V.
http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 14:38 ` Tim Visher
@ 2009-03-06 15:30 ` Dmitry Potapov
2009-03-07 17:58 ` Pascal Obry
2009-03-07 18:00 ` Pascal Obry
2 siblings, 0 replies; 12+ messages in thread
From: Dmitry Potapov @ 2009-03-06 15:30 UTC (permalink / raw)
To: Tim Visher; +Cc: Tariq Hassanen, git
On Fri, Mar 6, 2009 at 5:38 PM, Tim Visher <tim.visher@gmail.com> wrote:
>
> IMHO, Git under cygwin's pretty nice. I tried using MSysGit as well
> and didn't feel like it was quite as good as just building Git under
> cygwin. I also run Git on an Mac at home and while it's clearly
> faster, Git under Cygwin still beats the pants off of SVN under
> Cygwin.
If I am not mistaken Git 1.6.1 should work about twice faster under
Cygwin than previous versions with such common operations as
"git diff", "git status", because it avoids emulation of stat() in most
common cases...
>
>> But is there a way around this if i run a linux VM with Git running
>> and mount a windows ntfs partition ?
>
> Would this really be faster? I don't have a whole lot of experience
> with virtualization, but isn't Cygwin 'basically' doing this already?
No, Cygwin works very differently... In some cases, Cygwin will work
faster, but there are operations that are very costly under Cygwin
such as fork(). So, what is faster depends on what you do, and
there are many other factors here such available memory or
present some antivirus programs, which can kill performance...
But, in general, if you work on Windows, it makes much more
sense to Cygwin or MSysGit than running Git under VmWare...
Dmitry
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 14:38 ` Tim Visher
2009-03-06 15:30 ` Dmitry Potapov
@ 2009-03-07 17:58 ` Pascal Obry
2009-03-07 18:00 ` Pascal Obry
2 siblings, 0 replies; 12+ messages in thread
From: Pascal Obry @ 2009-03-07 17:58 UTC (permalink / raw)
To: Tim Visher; +Cc: Tariq Hassanen, git
Tim Visher a écrit :
> I wouldn't bother waiting. Git is plenty mature on Windows, either
> via msys or via Cygwin. There's no real reason to delay. :)
I second that. I'm using Cygwin's Git for almost 2 years now on more
than 15 repositories. Some are plain Git, the most of them are git-svn.
No issue, working perfectly under Cygwin.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 14:38 ` Tim Visher
2009-03-06 15:30 ` Dmitry Potapov
2009-03-07 17:58 ` Pascal Obry
@ 2009-03-07 18:00 ` Pascal Obry
2009-03-07 19:02 ` Robin Rosenberg
2 siblings, 1 reply; 12+ messages in thread
From: Pascal Obry @ 2009-03-07 18:00 UTC (permalink / raw)
To: Tim Visher; +Cc: Tariq Hassanen, git
oh yes one issue. I have never been able to make git instaweb working on
Cygwin and never had time to look at this problem.
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-07 18:00 ` Pascal Obry
@ 2009-03-07 19:02 ` Robin Rosenberg
2009-03-07 19:04 ` Pascal Obry
0 siblings, 1 reply; 12+ messages in thread
From: Robin Rosenberg @ 2009-03-07 19:02 UTC (permalink / raw)
To: pascal; +Cc: Tim Visher, Tariq Hassanen, git
lördag 07 mars 2009 19:00:24 skrev Pascal Obry <pascal@obry.net>:
>
> oh yes one issue. I have never been able to make git instaweb working on
> Cygwin and never had time to look at this problem.
>
> Pascal.
>
I think that worked fine when I tried using cygwin's apache. Mixing a cygwin
git with a win32 apache did not work well.
-- robin
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-07 19:02 ` Robin Rosenberg
@ 2009-03-07 19:04 ` Pascal Obry
2009-03-09 18:29 ` Ramsay Jones
0 siblings, 1 reply; 12+ messages in thread
From: Pascal Obry @ 2009-03-07 19:04 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: Tim Visher, Tariq Hassanen, git
Robin Rosenberg a écrit :
> I think that worked fine when I tried using cygwin's apache. Mixing a cygwin
> git with a win32 apache did not work well.
Well, I tried with lighttpd IIRC. I do not want Apache just for browsing
a Git repo.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://www.obry.net - http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-07 19:04 ` Pascal Obry
@ 2009-03-09 18:29 ` Ramsay Jones
0 siblings, 0 replies; 12+ messages in thread
From: Ramsay Jones @ 2009-03-09 18:29 UTC (permalink / raw)
To: pascal; +Cc: Robin Rosenberg, Tim Visher, Tariq Hassanen, git
Pascal Obry wrote:
> Robin Rosenberg a écrit :
>> I think that worked fine when I tried using cygwin's apache. Mixing a cygwin
>> git with a win32 apache did not work well.
>
> Well, I tried with lighttpd IIRC. I do not want Apache just for browsing
> a Git repo.
>
Pascal, I also installed lighttpd on cygwin, just so that I could test gitweb
and cgit (I have Apache installed on Linux). I had a few problems getting it
to work at first. Only later did I notice that "git-instaweb" didn't work.
Having fixed the installation problems earlier, I fixed git-instaweb and then
forgot to send in the patch. Oops... Patch on the way... ;-)
[I had intended to make several other changes and submit it later...]
You may also notice that "git-instaweb" does not provide the git-logo.png
and git-favicon.png; so if that bothers you, just copy those files from
your git repo into the target repo's .git/gitweb directory. (That was one
of the things I was going to look at fixing)
<off-topic>
Note: if you decide to try cgit, then be aware that lighttpd has a bug which
causes problems with mixed-case pathnames in the pathinfo. lighttpd down-cases
the filename part of the pathinfo when on a case insensitive filesystem, so
cgit can't find the corresponding blob. (This is not a problem with gitweb).
I sent a fix for this bug to (who I thought was) the lighttpd maintainer, but
didn't get any response; so don't count on a fix for this.
An amusing, but impractical, workaround for this is to name your document root
something like /123 ie the path is numeric (and so does not differ in case ;-)
[lighttpd uses a runtime test of the case-sensitive-ness of the document root
pathname to control this behaviour]
Also, I could not get lighttpd to execute a cgi program with an ".exe" extension
so I had to create a simple script, viz:
$ cat /var/www/cgit/cgit.cgi
#!/bin/sh
exec /var/www/cgit/cgit.cgi.exe
$
<off-topic>
ATB,
Ramsay Jones
^ permalink raw reply [flat|nested] 12+ messages in thread
* Using Git with windows
@ 2009-03-06 19:10 John Dlugosz
2009-03-07 2:50 ` Johannes Schindelin
0 siblings, 1 reply; 12+ messages in thread
From: John Dlugosz @ 2009-03-06 19:10 UTC (permalink / raw)
To: git; +Cc: tariq.hassanen
I can think of two differences: Line endings have been mentioned already.
But, and I was wondering this already anyway, does the Windows git know that the file system is case insensitive but case preserving? That is, does it just ignore the issue, is there logic to cope with that better? If so, that would be missing if you ran it in the Linux VM. (Unless it checks the file system capabilities rather than the OS it is running under)
--John
(please excuse the footer; it is not my idea)
TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using Git with windows
2009-03-06 19:10 John Dlugosz
@ 2009-03-07 2:50 ` Johannes Schindelin
0 siblings, 0 replies; 12+ messages in thread
From: Johannes Schindelin @ 2009-03-07 2:50 UTC (permalink / raw)
To: John Dlugosz; +Cc: git, tariq.hassanen
[-- Attachment #1: Type: TEXT/PLAIN, Size: 623 bytes --]
Hi,
On Fri, 6 Mar 2009, John Dlugosz wrote:
> I can think of two differences: Line endings have been mentioned already.
And I have addressed that already, did I not?
> But, and I was wondering this already anyway, does the Windows git know
> that the file system is case insensitive but case preserving? That is,
> does it just ignore the issue, is there logic to cope with that better?
> If so, that would be missing if you ran it in the Linux VM. (Unless it
> checks the file system capabilities rather than the OS it is running
> under)
AFAIR Git recognizes case-insensitive file systems as such.
Hth,
Dscho
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-03-09 18:34 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <e878dbad0903052321l6c0d310bk2ba568138b409d36@mail.gmail.com>
2009-03-06 7:23 ` Using Git with windows Tariq Hassanen
2009-03-06 8:16 ` John Chapman
2009-03-06 10:59 ` Johannes Schindelin
2009-03-06 14:38 ` Tim Visher
2009-03-06 15:30 ` Dmitry Potapov
2009-03-07 17:58 ` Pascal Obry
2009-03-07 18:00 ` Pascal Obry
2009-03-07 19:02 ` Robin Rosenberg
2009-03-07 19:04 ` Pascal Obry
2009-03-09 18:29 ` Ramsay Jones
2009-03-06 19:10 John Dlugosz
2009-03-07 2:50 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).