<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - git tag</title>
  <link>http://www.weiqigao.com/blog/tags/git/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>Git At Home</title>
    <link>http://www.weiqigao.com/blog/2008/10/10/git_at_home.html</link>
    
      
        <description>
          &lt;p&gt;Here&#039;s a little experiment that I did last night after Kyle&#039;s Git talk&amp;mdash;I put this blog under Git control.&lt;/p&gt;

&lt;p&gt;I have been maintaining the content of this blog in Subversion &lt;a href= &#034;http://www.weiqigao.com/blog/2005/03/28/the_subversion_conversion_diversion.html&#034; &gt;since March 2005, 1292 days ago&lt;/a&gt; (and in CVS before that).  When I &lt;a href= &#034;http://www.weiqigao.com/blog/2008/08/07/upgraded_weblog_software_to_pebble_2_3_1.html&#034; &gt;moved this blog&lt;/a&gt; from my Fedora Core 6 box to my Debian box 64 days ago, I don&#039;t have enough disk space on the partition to hold the 1.9G Subversion workspace.  So I simply used the 916M export from Subversion.&lt;/p&gt;

&lt;p&gt;One of the questions I asked yesterday was the disk space usage of Git.  And Kyle assured me that its much less than Subversion.  So I gave Git a try:&lt;/p&gt;

&lt;pre style=&#034;margin-left:3em&#034;&gt;[weiqi@gao] # &lt;b&gt;feta install git-core&lt;/b&gt;
&lt;span style=&#034;color:darkgray&#034;&gt;Blah Blah Blah&lt;/span&gt;
[weiqi@gao] # &lt;b&gt;df -h /var&lt;/b&gt;
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/gao--2006-var
                      2.9G  2.0G  732M  74% /var
[weiqi@gao] # &lt;b&gt;git --version&lt;/b&gt;
git version 1.4.4.4
[weiqi@gao] # &lt;b&gt;git init-db&lt;/b&gt;
defaulting to local storage area
[weiqi@gao] # &lt;b&gt;echo *.bak &gt; .gitignore&lt;/b&gt;
[weiqi@gao] # &lt;b&gt;git add .&lt;/b&gt;
&lt;span style=&#034;color:darkgray&#034;&gt;Blah Blah Blah&lt;/span&gt;
&lt;span style=&#034;color:darkgray&#034;&gt;Blah Blah Blah&lt;/span&gt;
...
[weiqi@gao] # &lt;b&gt;df -h /var&lt;/b&gt;
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/gao--2006-var
                      2.9G  2.2G  550M  80% /var
[weiqi@gao] # &lt;b&gt;git commit&lt;/b&gt;
Committing initial tree 9c31562f7a84c42ebab872d245a49b637b1e0395
[weiqi@gao] # &lt;b&gt;df -h /var&lt;/b&gt;
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/gao--2006-var
                      2.9G  2.2G  546M  81% /var
[weiqi@gao] # &lt;b&gt;du -sh .git&lt;/b&gt;
187M    .git
&lt;/pre&gt;

&lt;p&gt;So everything fits in there nicely.  What would have been a 1.9G Subversion working directory now fits into a 1.2G space.  (This is a bit of an unfair comparison because I did not convert my Subversion repository to Git, so I don&#039;t have much history in Git, yet.)  And yes, Git is blazingly fast.&lt;/p&gt;

&lt;p&gt;I&#039;ll just have to push it to another box from time to time.&lt;/p&gt;

&lt;p&gt;And here&#039;s how the repo looks in gitk, a Tk GUI that Kyle demoed yesterday:&lt;/p&gt;

&lt;center&gt;
&lt;a href= &#034;./images/git-initial-import.png&#034; &gt;
&lt;img src=&#034;http://www.weiqigao.com/blog/images/git-initial-import.png&#034; title=&#034;Git initial import, shown in gitk&#034; alt=&#034;Git initial import, shown in gitk&#034; width=&#034;455&#034; height=&#034;435&#034; /&gt;
&lt;/a&gt;
&lt;/center&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2008/10/10/git_at_home.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2008/10/10/git_at_home.html</guid>
    <pubDate>Fri, 10 Oct 2008 12:17:28 GMT</pubDate>
  </item>
  
  <item>
    <title>Git At The JUG</title>
    <link>http://www.weiqigao.com/blog/2008/10/09/git_at_the_jug.html</link>
    
      
        <description>
          &lt;p&gt;Today is JUG day.&lt;/p&gt;

&lt;p&gt;The JUG did a Git talk.&lt;/p&gt;

&lt;p&gt;&lt;a href= &#034;http://www.kylecordes.com/&#034; &gt;Kyle Cordes&lt;/a&gt; gave the talk.&lt;/p&gt;

&lt;p&gt;Kyle gave the talk without &lt;a href= &#034;http://video.google.com/videosearch?q=Why+PowerPoint+is+Bad&amp;ie=UTF-8&amp;oe=utf-8&amp;rls=org.debian:en-US:unofficial&amp;client=iceweasel-a&amp;um=1&amp;sa=X&amp;oi=video_result_group&amp;resnum=4&amp;ct=title#&#034; &gt;PowerPoint&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Kyle demoes Git on Windows.&lt;/p&gt;

&lt;p&gt;A Gtk+ GUI Git tool did Kyle use on Windows.&lt;/p&gt;

&lt;p&gt;The tool showed &lt;span style=&#034;color:red&#034;&gt;trees&lt;/span&gt; of his projects: branches and merges and stashes&lt;/p&gt;

&lt;p&gt;Git is fast, said Kyle.&lt;/p&gt;

&lt;p&gt;Git is the distributed version control tool to choose nowadays, said Kyle.&lt;/p&gt;

&lt;pre style=&#034;margin-left:3em&#034;&gt;$ &lt;b&gt;git init&lt;/b&gt;
&lt;span style=&#034;color:darkgray&#034;&gt;Blah Blah Blah&lt;/span&gt;
$ &lt;b&gt;git add .&lt;/b&gt;
&lt;span style=&#034;color:darkgray&#034;&gt;Blah Blah Blah&lt;/span&gt;
$ &lt;b&gt;git commit&lt;/b&gt;
&lt;span style=&#034;color:darkgray&#034;&gt;Vi opened up for commit comments&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;GitHub is a host of Git stuff, free for open source, pay for non-open source.&lt;/p&gt;

&lt;p&gt;No Eclipse plugin yet.  Have to press F5.&lt;/p&gt;

&lt;p&gt;Git can detect file movements within the workspace, based on similarity.&lt;/p&gt;

&lt;p&gt;Git does not do expanded keywords.&lt;/p&gt;

&lt;p&gt;Kyle brought a little thumb drive that contained the Linux kernel repository.&lt;/p&gt;

&lt;p&gt;The actual repo is in three files, the largest is about 200MB.&lt;/p&gt;

&lt;p&gt;The whole Git workspace (with the repo) is usually smaller than the Subversion workspace (with only the latest version).&lt;/p&gt;

&lt;p&gt;We had a reasonable crowd.  Many questions, many answers.&lt;/p&gt;

&lt;p&gt;We had extraordinary giveaways.&lt;/p&gt;

&lt;p&gt;Many people went home with prizes.  Mine is Oracle VM and Oracle Linux!  Mark won the new Ruby IDE from JetBrains.&lt;/p&gt;

&lt;p&gt;Watch this space (and &lt;a href= &#034;http://www.ociweb.com/javasig/knowledgebase/2008-10/index.html&#034; &gt;that space&lt;/a&gt;) for the presentation material (a one page PDF, which just shows you that you need to come.)&lt;/p&gt;

&lt;p&gt;CodeToJoy didn&#039;t make it here today, but he really wanted to get people&#039;s opinions about &lt;a href= &#034;http://www.youtube.com/OCItv&#034; &gt;OCItv&lt;/a&gt;.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2008/10/09/git_at_the_jug.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2008/10/09/git_at_the_jug.html</guid>
    <pubDate>Fri, 10 Oct 2008 02:39:31 GMT</pubDate>
  </item>
  
  <item>
    <title>Go Listen To Linus</title>
    <link>http://www.weiqigao.com/blog/2007/05/17/go_listen_to_linus.html</link>
    
      
        <description>
          &lt;blockquote&gt;
&lt;p&gt;&lt;a href= &#034;http://kylecordes.com/2007/05/17/linux-git-distributed/&#034; &gt;Kyle Cordes&lt;/a&gt;: &lt;b&gt;Linus Torvalds explains distributed source control&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;On several occasions over the last year, I’ve pointed out that distributed source control tools are dramatically better than centralized tools. It’s quite hard for me to explain why. This is probably because of sloppy and incomplete thinking on my part, but it doesn’t help that most of the audiences / people I’ve said this to, have never used a distributed tool. (I’ve been trying out &lt;a href=&#034;http://svk.bestpractical.com/view/HomePage&#034;&gt;SVK&lt;/a&gt;, &lt;a href=&#034;http://bazaar-vcs.org/&#034;&gt;bzr&lt;/a&gt;, git, etc.) Fortunately, I no longer need to stumble with attempts at explaining this; instead, the answer is to watch:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#034;http://www.youtube.com/watch?v=4XpnKHJAok8&#034;&gt;Linus Torvalds explain distributed source control in general, and git in particular, at Google&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href= &#034;http://www.youtube.com/watch?v=4XpnKHJAok8&#034; &gt;Go now&lt;/a&gt;.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2007/05/17/go_listen_to_linus.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2007/05/17/go_listen_to_linus.html</guid>
    <pubDate>Thu, 17 May 2007 14:50:27 GMT</pubDate>
  </item>
  
  </channel>
</rss>

