gitweb – shorty

The Team demanded (or asked nicely) for a graphical overview of all the git repositories, so here is the quick way to do it:

  1. Install gitweb

       sudo apt-get install gitweb
    
  2. Make an empty directory that is the root of all the repositories e.g. pub. This is necessary since git has no concept of a root repository holding others

     mkdir pub/
    
  3. Change owner to the user who owns the repositories

     sudo chown -R git:git pub
    
  4. Now we link the repositories into pub/ (Move to pub/ and do)

     ln -s /path/repo1.git rep1
     ln -s /path/repo2.git rep2
    
  5. Now we open /etc/gitweb.conf and edit the variable to pub/

     $projectroot = "/path/pub"
    

Now http://server/gitweb should show the list of repos. If not you probably have to edit $projectroot in /usr/share/gitweb/gitweb.cgi too.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s