Installing GIT scm on CentOS 5 offline without YUM
Intalling these packages first:
- curl
- autoconf
- zlib-devel
- openssl-devel
- perl
- cpio
- expat-devel
- gettext-devel
Using this repo to download them:
http://mirrors.digipower.vn/centos/5/os/x86_64/CentOS/
Read this article to know how to install them
http://tuan.nguoianphu.com/CentOS_5_install_rpm
Getting the GIT scm source code:
http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
Compiling the GIT scm from source
tar xzvf git-latest.tar.gz
cd git-{date} // edit it
autoconf
./configure --with-curl=/usr/local
make
make install
Setting up GIT if you use a HTTP proxy
# git config --global http.proxy http://my.proxy.com:8080
Push to Github without SSL certificate.
https://github.com/
Example:
HTTPS URL: https://github.com/nguoianphu/thinking-in-java.git
=> https://USER-NAME:PASSWORD@github.com/nguoianphu/thinking-in-java.git