Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Installing Git on a cPanel server  (Read 2798 times)

0 Members and 1 Guest are viewing this topic.

lijeshk

  • Guest
Installing Git on a cPanel server
« on: November 25, 2013, 05:12:51 pm »

Git is an open source software used for version control:

The following command will install all the dependencies needed for Git.

Code: [Select]
#yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel
Downloading and Installing Git:

Code: [Select]
#cd /usr/local/src
# wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
# tar xvzf git-latest.tar.gz
# cd git-date
# autoconf

# ./configure –with-curl=/usr/local

# make
# make install

The installation is completed now. But we need to do a bit of testing as well:

Code: [Select]
#mkdir git-test
#cd git-test
# git init

Here, we created a test directory called “git-test”, entered into that directory and initialized a repository there. If everything works fine, you will get a message as said below.

Code: [Select]
root@server [/usr/src/git-2013-10-30/git-test]# git init
Initialized empty Git repository in /usr/src/git-2013-10-30/git-test/.git/

That's it

--