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.