Derek Gathright | Scribbles & Bits

Jan/09

10

Using Git on 1&1 (or any ’shared’) hosting

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.

  1. 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
  2. SSH into your 1&1 account
  3. “wget http://kernel.org/pub/software/scm/git/git-1.6.1.tar.gz”, and that will download the package
  4. “tar -xvzf git-1.6.1.tar.gz” which will decompress the gzip file into a subdirectory
  5. “cd git*” to change into the subdirctory
  6. “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.
  7. 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!

RSS Feed

3 Comments for Using Git on 1&1 (or any ’shared’) hosting

Mick | October 13, 2009 at 6:55 PM

Thanks for the tip. Probably worth mentioning that on some systems it could .bash_profile.

Adam | October 23, 2009 at 10:35 AM

You can also use ./configure –prefix=/kunden/homepages/…/htdocs/bin/git, then make && make install.

Using Git on 1&1 (or any 'shared') hosting - Derek Gathright « Hotwebhostreviews.com | December 5, 2009 at 2:00 PM

[...] Link: Using Git on 1&1 (or any 'shared') hosting – Derek Gathright [...]

Leave a comment!

<<

>>

Find it!

Theme Design by devolux.org