Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><em>EDIT: So it's 2016, six years on from when I wrote the original answer below. I've used git and mercurial heavily for several years now, and I've been developing on a mac for several years too. I've become very familiar and comfortable with git usage on the command line, but for day-to-day work I use SourceTree from Atlassian. This is not an advertisement, just a note to update this answer. SourceTree is a double abstraction: the same ui for for git/hg, and the same ui for Windows/Mac. When you have to switch platforms and projects often, this becomes very attractive.</em></p> <p>Having written <a href="http://code.google.com/p/tortoisegit/wiki/HOWTO_CentralServerWindowsXP" rel="nofollow noreferrer">a guide to setting up both client and server for Git on Windows</a>, I have a pretty good idea of what one can expect. Also, my primary repository (<code>.git</code> folder) is ~260MB of source, so it is really not a trivial performance test for day-to-day Git work on Windows. </p> <p>My general impression is that Git on windows is very fast for the vast majority of situations one is likely to encounter, with one really huge exception: <code>git gui blame -C -C</code>. By default, git will not blame on files beyond file rename boundaries, and the extra <code>-C -C</code> arguments must be passed to enable that to happen, but then things can really slow down. It takes 17 minutes on modern hardware to produce a complete annotation of one of our larger ~20 kloc source files. That delay can really break your concentration.</p> <h2>Regarding <a href="http://www.cygwin.com/" rel="nofollow noreferrer">cygwin</a>:</h2> <p>I only tried this once, and not for anything significant. I really wanted a native solution. By all accounts, git on cygwin works well enough.</p> <h2>Regarding <a href="http://code.google.com/p/tortoisegit/" rel="nofollow noreferrer">TortoiseGit</a></h2> <p>Frank Li has done tremendous work bringing the now-familiar UI to the Git world. TortoiseGit started up very quicky because most of the UI was available from TortoiseSVN (and other tools like TortoiseMerge), and I have worked with this interface a great deal. In general, it allows one to get going with Git very quickly if you are familiar with TortoiseSVN. The developer has gone to great pains to use terms from the TortoiseSVN world and map them to git commands. For instance, a <em>revert</em> really performs a <code>git checkout &lt;file&gt;</code> under the hood.</p> <p>In general, working with Git this way has been pretty seamless, and I must admit to having learned Git while using the TortoiseGit interface: and it must be conceded that this was a hindrance to my education. The TortoiseSVN-like log viewer doesn't really work <em>for a distributed-vcs workflow</em> (it works well enough it you use Git as if it were SVN), and you only find this out later because the problems only come in when there are many, many development branches (the <code>gitk</code> tool is <em>much</em> better at handling this display). And the other issue is that even after using TortoiseGit for many months, I still didn't know even the most basic git commands. There is nothing really wrong with TortoiseGit, and bugs get fixed impressively quickly when they do occur; the main problem seems to be a design issue (possibly more than one) in the UI, something that the <code>gitk</code> and <code>git gui</code> developers have worked out because of a longer development history, or a more intimate knowledge of idiomatic git usage, or something like that.</p> <h2>Regarding command-line use:</h2> <p>The <a href="http://code.google.com/p/msysgit/people/list" rel="nofollow noreferrer">MSYS git development team</a> are the ones who really should be thanked for even bothering to do all the work they did, and without their support it is likely the mingw git branch would never even have been merged with mainline.</p> <p>I have now begun using msysgit, as is, in the <em>Git Bash</em> shell, as my only git interface for a few weeks. My impression is that, although the initial learning seems more difficult, once that knowledge has been gained, everything else becomes easier. <a href="http://cheat.errtheblog.com/s/git" rel="nofollow noreferrer">This reference</a> is, in my opinion, one of the really better references learning git on the command line. </p> <p>Speaking as a Git user on Windows, and coming from an extended experience using the TortoiseGit interface to git, this is a summary of my workflow, which covers >95% of what is needed (all in Git Bash, <em>not</em> the Windows command shell (cmd)):</p> <ul> <li><p><em>Check for Modifications</em> </p> <blockquote> <p>git status </p> </blockquote></li> <li><p><em>Switch branch</em></p> <blockquote> <p>git checkout some-feature-branch</p> </blockquote></li> <li><p><em>Fetch</em></p> <blockquote> <p>git fetch </p> </blockquote></li> <li><p><em>Show Log</em> (the <code>&amp;</code> detaches the <code>gitk</code> process from the shell, so that the shell doesn't wait for <code>gitk</code> to be closed before allowing more commands)</p> <blockquote> <p>gitk &amp;</p> </blockquote></li> <li><p><em>Commit</em>: either </p> <ul> <li><p>Simple commit: </p> <blockquote> <p>git commit -a -m "This is my commit message" </p> </blockquote></li> <li><p>Complex, multiple successive commits: </p> <blockquote> <p>git gui </p> </blockquote></li> </ul></li> <li><p><em>Push to branch: master</em></p> <blockquote> <p>git push origin master </p> </blockquote></li> <li><p><em>Merge</em> (e.g. after Fetch) </p> <blockquote> <p>git merge origin/master </p> </blockquote></li> </ul> <p>I haven't had to do any conflict-resolution yet, but I'll figure that out when the time comes (comments welcome :).</p> <p><em>EDIT: For conflict resolution, kdiff3 is the way to go. Setup is simple, and everything from simple diffs up to three-way merge works reliably and swiftly.</em></p> <h2>Conclusions</h2> <ul> <li><p>Git on Windows is full-featured, and works as advertised, and is <strong>not limited on Windows</strong>.</p></li> <li><p>Performance is generally very good, but comprehensive large blames <em>might</em> be slow.</p></li> <li><p>The TortoiseGit interface is seductive, but ultimately unsatisfying: you should try to learn git on the command-line. I have done both, and this route is more efficient.</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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