<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicio.us/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tim Barcz : Git</title><link>http://devlicio.us/blogs/tim_barcz/archive/tags/Git/default.aspx</link><description>Tags: Git</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><item><title>Open Source Whining</title><link>http://devlicio.us/blogs/tim_barcz/archive/2010/07/28/open-source-whining.aspx</link><pubDate>Wed, 28 Jul 2010 14:04:28 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:61272</guid><dc:creator>Tim Barcz</dc:creator><slash:comments>29</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/tim_barcz/rsscomments.aspx?PostID=61272</wfw:commentRss><comments>http://devlicio.us/blogs/tim_barcz/archive/2010/07/28/open-source-whining.aspx#comments</comments><description>&lt;p&gt;&lt;img style="display:inline;margin-left:0px;margin-right:0px;" align="right" src="http://4.bp.blogspot.com/_N3mwtdW7vDY/SjkBr84l-tI/AAAAAAAAAGY/GIsPl56WOn4/s320/whiner1.jpg" width="159" height="212" alt="" /&gt;Was working on a blog post talking about a problem I’ve found in Git (1.7.0.2) and I thought I would check to see if it’s been fixed in the most recent version.&amp;#160; After downloading and installing I reviewed the release notes where I’m quite shocked to read the following:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;“…All hopes to the contrary, Git for Windows is backed by only a handful of developers, in spite of being downloaded almost one hundred thousand times. You can expect developers to be enthusiastic to fix others&amp;#39; issues in such a situation only for so long. In short: &lt;b&gt;Do not expect other people to fix your issues for you.”&lt;/b&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Basically, what I get from this is that &lt;strong&gt;the msysgit committers are a bunch of whiners&lt;/strong&gt;. What they fail to see is that the people who would benefit from their VCS may not have the same skillset to work on the code.&amp;#160; This is something we’ve realized long ago with &lt;a href="http://www.ayende.com/wiki/Rhino+Mocks+Documentation.ashx"&gt;Rhino Mocks&lt;/a&gt;.&amp;#160; &lt;/p&gt;  &lt;p&gt;Should more people help? Possibly. As someone active in open source technology I don’t know that I can be of much assistance to the Git team – I am someone who benefits greatly from their software (I am quite thankful for it) but don’t have the requisite knowledge in C/C++ to assist in any meaningful fashion.&lt;/p&gt;  &lt;p&gt;Just a bit disappointed to see this type of whining in their release notes – certainly there are far better ways to say what they’re trying to say.&amp;#160; Doesn’t represent msysgit or the broader open source community well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=61272" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/tim_barcz/archive/tags/Open+Source+Software/default.aspx">Open Source Software</category><category domain="http://devlicio.us/blogs/tim_barcz/archive/tags/Git/default.aspx">Git</category></item><item><title>I Just Cloned, Why Did Git Change My Files?</title><link>http://devlicio.us/blogs/tim_barcz/archive/2009/11/29/i-just-cloned-why-did-git-change-my-files.aspx</link><pubDate>Mon, 30 Nov 2009 04:35:00 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:54252</guid><dc:creator>Tim Barcz</dc:creator><slash:comments>10</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/tim_barcz/rsscomments.aspx?PostID=54252</wfw:commentRss><comments>http://devlicio.us/blogs/tim_barcz/archive/2009/11/29/i-just-cloned-why-did-git-change-my-files.aspx#comments</comments><description>&lt;p&gt;Being new to Git I got thrown off a few weeks ago when cloning a remote repository and immediately seeing changes after the clone completed.&amp;nbsp; Scratching my head a bit, I reached out on &lt;a href="http://www.twitter.com/timbarcz"&gt;Twitter&lt;/a&gt; and &lt;a href="http://www.lostechies.com/blogs/jagregory/"&gt;James Gregory&lt;/a&gt; came to the rescue.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;How is it that right after a git clone &amp;lt;url&amp;gt;, git status shows modified files? (&lt;a title="http://twitter.com/TimBarcz/status/5920294511" href="http://twitter.com/TimBarcz/status/5920294511"&gt;http://twitter.com/TimBarcz/status/5920294511&lt;/a&gt;)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;What James showed me was that there is a setting &lt;b&gt;core.autocrlf &lt;/b&gt;on your system which needs to match the remote repository.&amp;nbsp; If it does not match, when you clone the directory files will be changed.&lt;/p&gt;
&lt;p&gt;After experiencing this myself and coming across it again the other day, I thought I&amp;rsquo;d put a quick video together showing the problem and the fix, since I suspect others will have it at some point as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;display:inline;float:none;padding-top:0px;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:e4bb851d-5e2d-4d67-befc-f1fa30be9ea8" class="wlWriterEditableSmartContent"&gt;
&lt;div&gt;
&lt;object width="400" height="300"&gt;
&lt;param name="allowfullscreen" value="true" /&gt;
&lt;param name="allowscriptaccess" value="always" /&gt;
&lt;param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7889569&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" /&gt;&lt;embed src="http://vimeo.com/moogaloop.swf?clip_id=7889569&amp;amp;server=vimeo.com&amp;amp;show_title=1&amp;amp;show_byline=1&amp;amp;show_portrait=0&amp;amp;color=&amp;amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"&gt;&lt;/embed&gt;
&lt;/object&gt;
&lt;p&gt;&lt;a href="http://vimeo.com/7889569"&gt;Git - Core.AutoCrlf Setting&lt;/a&gt; from &lt;a href="http://vimeo.com/user2178893"&gt;Tim Barcz&lt;/a&gt; on &lt;a href="http://vimeo.com"&gt;Vimeo&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To recap: when cloning a new repository, always perform a &amp;ldquo;git status&amp;rdquo; command right after the clone.&amp;nbsp; If you see modified files, a core.autocrlf mismatch is likely the culprit.&amp;nbsp; Change your setting, clone again, and you should be good to go.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=54252" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/tim_barcz/archive/tags/Tips+And+Tricks/default.aspx">Tips And Tricks</category><category domain="http://devlicio.us/blogs/tim_barcz/archive/tags/Git/default.aspx">Git</category></item><item><title>Git…Command-line or GUI?</title><link>http://devlicio.us/blogs/tim_barcz/archive/2009/10/07/git-command-line-or-gui.aspx</link><pubDate>Wed, 07 Oct 2009 19:15:02 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:52378</guid><dc:creator>Tim Barcz</dc:creator><slash:comments>32</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://devlicio.us/blogs/tim_barcz/rsscomments.aspx?PostID=52378</wfw:commentRss><comments>http://devlicio.us/blogs/tim_barcz/archive/2009/10/07/git-command-line-or-gui.aspx#comments</comments><description>&lt;p&gt;A short quick post to get some feedback from you, the reader.&lt;/p&gt;  &lt;p&gt;I’m working to learn and transition to Git (using &lt;a href="http://www.lostechies.com/blogs/jason_meridth/archive/2009/06/01/git-for-windows-developers-git-series-part-1.aspx"&gt;Jason Meridth’s great series on Git&lt;/a&gt;).&amp;#160; Up to this point I’ve been using the command-line only, working to learn Git on the command-line before I rely on a tool or GUI abstraction. Recently I’ve been going through some refactoring on a project where I’m using Git. Right now I’m slow, really slow. Renaming files/classes for example is cumbersome to say the least.&lt;/p&gt;  &lt;p&gt;I got to wondering if knowing the command-line is even useful anymore or it just a geek badge of honor that a few developers like to point to proudly when talking about skill sets? Some part of me feels like using a tool like GitGUI or TortoiseGit is “cheating”.&amp;#160; Ironically I admire Git because it seems to let me work the way I want to work; branch often, local commits, easier merging and yet right now the command-line use of Git is my primary roadblock. It is at this point that I start thinking I should give up on the command-line since an SCM tool shouldn’t be intrusive and move to a GUI tool and give up my chances at fifth degree black belt geek.&lt;/p&gt;  &lt;p&gt;So what do you think?&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Use command-line go slow now but know the tool very well.&lt;/li&gt;    &lt;li&gt;Use GUI and go faster, however always be reliant on the GUI abstraction&lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;Is using a GUI “cheating”?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devlicio.us/aggbug.aspx?PostID=52378" width="1" height="1"&gt;</description><category domain="http://devlicio.us/blogs/tim_barcz/archive/tags/Git/default.aspx">Git</category></item></channel></rss>