Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: HOWTO: install Git on Hostmonster

  1. #1
    Join Date
    Nov 2008
    Posts
    12

    Default HOWTO: install Git on Hostmonster

    Git is an open source version control system and this is how I installed Git v1.6.0.4 on my hostmonster account.

    Code:
    $ mkdir git
    $ cd git
    $ wget http://kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz
    $ gunzip git-1.6.0.4.tar.gz
    $ tar -xf git-1.6.0.4.tar
    $ cd git-1.6.0.4/
    $ ./configure --prefix=$HOME/git
    $ make && make install
    # you can remove the source, but I chose to move it into a source folder
    Code:
    $ cd ~/git
    $ mv git-1.6.0.4/ src/
    # now add this line to your .bashrc file:
    Code:
    export PATH=$HOME/git/bin/:$HOME/git/lib/libexec/git-core/:$PATH
    # to check your install and reload bash:
    Code:
    $ source ~/.bashrc
    $ git --version
    # to get started move to your project directory and type: (note the "." on line 3)
    Code:
    $ git init
    # Initialized empty Git repository in /home/mysite/rails/bpc/.git/
    $ git add .
    That should get you started. There are lots of tutorials out there to get you on your way.

  2. #2
    Join Date
    Nov 2008
    Posts
    4

    Default

    Wow,

    It is amazing that you posted this today as I had just started to do research on this exact subject...today!

    Thank you for the how-to, it worked wonderfully.

  3. #3
    Join Date
    Nov 2008
    Posts
    4

    Default

    marli03,

    Have you had any issues with connection time outs and unable to connect a socket when trying to download something using git?

    I have tried two different git hosts and both had failed

  4. #4
    Join Date
    Nov 2008
    Posts
    12

    Default

    Quote Originally Posted by capslock118 View Post
    marli03,

    Have you had any issues with connection time outs and unable to connect a socket when trying to download something using git?

    I have tried two different git hosts and both had failed
    I'm very new to git and haven't tried downloading anything yet. I think I saw another post about someone having problems downloading with git though. If I have a similar problem in the future and figure out a solution I'll try to post it in this thread though.

  5. #5
    Join Date
    Mar 2007
    Posts
    8

    Default

    use :

    git clone http://github.com/rails/rails.git

    ( with http:// protocol, instead of using git:// protocol )

    dont use: git clone git://github.com/rails/rails.git

    bye luca

  6. #6

    Default

    Don't know if anyone's watching this thread anymore, but when I try to pull from or push to a repository it's asking for my password and not accepting anything I give it. I added my SSH keys to the server, and tried using a few different users/password combinations, what am I doing wrong?
    Last edited by PHLAK; 03-17-2009 at 07:55 PM.

  7. #7

    Default

    I don't know if this will help you, but the only ssh account information that will work is your main account. The same info you use to log into your CPanel.

    If you have tried that, I'm at a loss.

    ~regards
    He is no fool that gives what he cannot keep to gain what he cannot lose. - Jim Elliot
    4ChristMinistry.org - Web development tutorials and Community forum.
    Demos - Kicking the tires on some popular software.

  8. #8

    Default

    Maybe I wasn't clear. I've tried changing my 'user.email' to the user name I use to log into CPanel, and it keeps bringing up my global email address to use to log in. I've tried changing my global email address, and still it's trying to log in with the old global 'user.email'.

  9. #9
    Join Date
    Feb 2008
    Location
    Chicago
    Posts
    92

    Default

    Wow - I'm glad this got posted here since I was in a bit of a quandary about what to do for SCM.

    Marli03's instructions worked perfectly for me, but note that GIT is in active development so by the time you read this, the latest stable version will probably be different. I just installed 1.6.2.1.

    To get the latest stable version, find out what that version number is by peeping:
    http://git-scm.com/.

    Then substitute that number for whatever number you see in Marli03's otherwise excellent instructions.

  10. #10

    Default

    ok, got everything working up to the clone. When I issue the command to clone a repo it asks for my password then the next thing it does is give me the following error:

    fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
    Any idea what I need to do here?
    Last edited by PHLAK; 04-05-2009 at 03:04 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •