This week I had a SSD tank and I was forced to install a fresh OS. While setting up my workstation, I decided to test VM VirtualBox > VMWare. While I was setting up my VM, I couldn’t grab wget http://kernel.org/pub/software/scm/git/<latest>.tar.gz
I wasn’t sure what was going on so I pinged kernel.org, no packets returned. I was completely unaware that kernel.org DNS’s got hacked. Linus released Linux 3.1 on Github and I needed to get git up fast.
Installing Git On CentOS 5.5
Quickly, I checked the Webtatic repo for git. Add the repo with this line:
[code lang=”bash”]rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm[/code]
Next you can install git with one line:
[code lang=”bash”]yum install –enablerepo=webtatic git-all[/code]
Installing Gitolite For Private Repo
Below is the quick install guide for gitolite – for all you that want a private repo. I’m currently installing this on a VM just to test it out. Eventually I will move my repo into a datacenter. For now, I just want a private repo so I can seamlessly push / pull between my desktop and laptop while having redundant backups of my projects.
If you’re comfortable with Unix and ssh, the following steps should work. (However, gitolite has lots and lots of useful features; don’t miss out on them by skipping the excellent documentation!)
- create a user called git. Login to this user.
- copy your ssh pubkey from your workstation. Rename it to YourName.pub.
- now run these commands:
git clone git://github.com/sitaramc/gitolite
You’re done. Now run
git clone git@server:gitolite-admin on your workstation and add users and repos.
Head over to https://github.com/sitaramc/gitolite if your looking for further documentation on gitolit. I’m assuming this will be the best for a private git repo. I will update this post with more information once I have my workstation / laptop setup. Come to think of it, I bet I could write a great post about developing between work, home, and mobile.