[I have not done this in a while so the dependencies are possibly wrong]
Since I primarily develop on a cluster, I generally develop and run application from a Linux command line. On some clusters, it is possible that git may not be installed on your HPC system. Since we will be compiling from source, we should get the latest release from the GitHub source repository.
These directions will create a git binary in $HOME/usr/local/git/bin/git
, which will need to create:
mkdir $HOME/usr/local
wget https://curl.haxx.se/download/curl-7.47.1.tar.gz tar -xf curl-7.47.1.tar.gz mkdir $HOME/usr/local/curl
cd curl-7.47.1 ./configure --prefix=$HOME/usr/local/curl
make
make install
wget http://downloads.sourceforge.net/expat/expat-2.1.0.tar.gz
tar -xf expat-2.1.0.tar.gz mkdir $HOME/usr/local/expat
cd expat-2.1.0 ./configure --prefix=$HOME/usr/local/expat
make
make install
wget https://github.com/git/git/archive/v2.6.4.tar.gz
tar -xf v2.6.4 mkdir $HOME/usr/local/git
cd git-2.6.4 make configure ./configure --prefix=$HOME/usr/local/git --with-curl=$HOME/usr/local/curl --with-expat=$HOME/usr/local/expat
make
make install
You may have a problem with connecting to github. This is an unsecure way to update because it leaves you vulnerable to man-in-the-middle attacks.
git config --global http.sslVerify false