Installing GIT

There are many ways to set up a GIT server with console.

This article shows one way to set up a remote GIT repository.Git is not part of the base CentOS 5 yum repositories.

To get git through yum, I configured yum to retrieve packages from the RPMForge repositories. I got these commands from RPMForge:

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm

 

Then, I can install the package:

yum install git-core

 

Finally we can configure HTTPS to have the server's certificate not expired. I'll generate a new self-signed certificate in order to use git securely over HTTPS. And start it working.

 

 

 

 

  • 22 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Related Articles

Checking system

Procedure for checking System   Check the environment. ...]# set   Show logged in users and...

Processes management

List running processes with their pids, under a hierarchical structure. ...]# ps -auxf   Kill...

Uninstalling and removing the packages

Just use the following command: sudo apt-get remove {package-name}   For example remove...

Increasing file upload size

To increase the file upload size we have to edit two values in php.ini: upload_max_filesize and...

Midnight Commander Shortcuts

Common Functions Ctrl + r -- Refresh active panelCtrl + t -- Mark single fileCtrl + x c -- Opens...

Powered by WHMCompleteSolution