Using Git on 1&1 (or any 'shared') hosting
Jan 10, 2009
Here’s another “How-to” with 1and1 hosting, and this time I want to get the source code control/versioning program “Git” installed on my shared host with 1&1. This was actually remarkably easy.
- Go download Git from http://git-scm.com/download. At the time of this posting, the latest version can be found at http://kernel.org/pub/software/scm/git/git-1.6.1.tar.gz
- SSH into your 1&1 account
- “wget http://kernel.org/pub/software/scm/git/git-1.6.1.tar.gz", and that will download the package
- “tar -xvzf git-1.6.1.tar.gz” which will decompress the gzip file into a subdirectory
- “cd git*” to change into the subdirctory
- “make” to begin compiling the source. You won’t be able to do “make install” because you likely won’t have permission to install anything to the system.
- Now Git is ready to rock with the exception of needing to add it to your $PATH. This can be done by typing “echo ‘PATH=$PATH:~/git-1.6.1/‘ > ~/.profile”