March 2009

A Guide to Setting Up Git, Gitosis, and Gitweb

Posted by HokieTux on March 3, 2009 in Guides

I have recently migrated to using Git for my (D)SCM-of-choice, and so far, I am extremely happy with it.  I am hosting public and private Git trees on this server, and using it as the ‘central node’ for most of my coding and configs.  I am using Gitweb for the web interface and Gitosis to manage secure commits from multiple users and machines.  While getting Git set up was a piece of cake, getting everything else up and running wasn’t quite so smooth.  This is a guide for getting the whole system up and running quickly and easily so you can get back to hacking =)

The meat of this post is about Gitweb, for which there seems to be far fewer useful guides and docs out there (relative to the number for Git and Gitosis).  This is also the part that I  found the most difficult and time-consuming.  Hopefully, with this guide, it’ll be a much smoother ride for you.

Why I Use Git

There are a metric tonne of sites about why you should use Git, so I won’t try to convince you.  I will, briefly, however, go over my reasons for choosing it:

  1. People and projects I am working with are using it – This is extremely important, especially if you plan on making any sort of contributions to these projects.  As a computer engineer, I have a significant amount of interaction with Linux kernel trees (like the one over at Xilinx, for example), and nearly all such projects are using Git as their SCM.
  2. It works with projects that aren’t using it – The only projects I work with that aren’t using Git use Subversion. Thankfully, the ‘git svn’ tools work beautifully, and allow me to use Git to interact with svn repos.  This is very significant, as it allows me to further simplify my workflow into one common thread.
  3. Git is quickly becoming a valuable skill – Knowing SCMs has been, and always will be, valuable skills to employers.  The situation used to be that knowing CVS was a major selling point.  Then it moved to Subversion.  People are starting to realize the benefits of distributed SCMs, and focus is transitioning to DSCMs.  Of these, Git is at the fore-front in terms of user base and company adoption.
  4. It is small & fast- I don’t have infinite bandwidth, and I have a lot of interaction with code repositories.  Being able to clone Git trees and commit new

Read the entire post...

5 Comments »

ROFLcopter ASCII Text

Posted by HokieTux on March 2, 2009 in General

EDIT: If you know how to make WordPress stop mangling whitespace in comments, please leave it in a comment and let me know! As you can see, everyone’s ROFLCOPTER comment posts get totally owned.

I’m tired of searching the web for the ASCII version of the ROFLcopter whenever I need it, so I’m posting it here to make it easy to find.

ROFL:ROFL:LOL:ROFL:ROFL
           |
  L   /---------
 LOL===       []\
  L    \         \
        \_________\
          |     |
       -------------/

And yes, there are plenty of times that I ‘need’ the ROFLcopter text.

Edit:

Below is an alternate version, posted by Dark Emporer in a comment.  Thanks!!

  ROFL:ROFL:LOL:ROFL:ROFL
       ______|_____
 L    /            \
LOL===            []\
 L    \______________\
         |     |
       -------------/

Edit #2:

iampatrick4life has contributed a version that will work on sites that cut whitespace, like GameFAQs: Comment #209

Read the entire post...

45 Comments »