The Artima Developer Community
Sponsored Link

Java Buzz Forum
Git At Home

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Git At Home Posted: Oct 10, 2008 6:52 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Git At Home
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement

Here's a little experiment that I did last night after Kyle's Git talk—I put this blog under Git control.

I have been maintaining the content of this blog in Subversion since March 2005, 1292 days ago (and in CVS before that). When I moved this blog from my Fedora Core 6 box to my Debian box 64 days ago, I don't have enough disk space on the partition to hold the 1.9G Subversion workspace. So I simply used the 916M export from Subversion.

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:

[weiqi@gao] # feta install git-core
Blah Blah Blah
[weiqi@gao] # df -h /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/gao--2006-var
                      2.9G  2.0G  732M  74% /var
[weiqi@gao] # git --version
git version 1.4.4.4
[weiqi@gao] # git init-db
defaulting to local storage area
[weiqi@gao] # echo *.bak > .gitignore
[weiqi@gao] # git add .
Blah Blah Blah
Blah Blah Blah
...
[weiqi@gao] # df -h /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/gao--2006-var
                      2.9G  2.2G  550M  80% /var
[weiqi@gao] # git commit
Committing initial tree 9c31562f7a84c42ebab872d245a49b637b1e0395
[weiqi@gao] # df -h /var
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/gao--2006-var
                      2.9G  2.2G  546M  81% /var
[weiqi@gao] # du -sh .git
187M    .git

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't have much history in Git, yet.) And yes, Git is blazingly fast.

I'll just have to push it to another box from time to time.

And here's how the repo looks in gitk, a Tk GUI that Kyle demoed yesterday:

"Git

Read: Git At Home

Topic: Schedule bound Previous Topic   Next Topic Topic: Poky Linux or OpenMoko or Both?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use