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”
Done!

Thanks for the tip. Probably worth mentioning that on some systems it could .bash_profile.
You can also use ./configure –prefix=/kunden/homepages/…/htdocs/bin/git, then make && make install.
Pingback: Using Git on 1&1 (or any 'shared') hosting - Derek Gathright « Hotwebhostreviews.com
Does this allow for http(s) remote access?
Hi Derek,
I happened across this post of yours RE getting GIT to work on 1and1 as I was trying to make it work for me, using another helpful tutorial I managed to get it to work another way (as 1and1 now have it already installed.)
I wrote a guide for people to get a GIT repository up and working on 1and1 here:
http://blog.woodylabs.com/2012/01/1and1-web-hosting-git-installing-it-for-singular-dev/
…this way has the added benefit of keeping a “live” web root updated which means no more manual file uploading
Cheers
Woody