現時点での最新版である 2.37.2 を導入。
- git で git をとってくる
1git clone https://github.com/git/git - make だと “Error expanding embedded variable.” というエラーを吐くので gmake で configure を作成し実行(/foo/bar/ は自ホームディレクトリの絶対パス)
1gmake configure; ./configure --prefix=/foo/bar/local - そのまま gmake all を実行すると git-compat-util.h から “Required C99 support is in a test phase. Please see git-compat-util.h for more details.” と言われるので、-std=gnu99 オプションをつけてコンパイル&インストール
1gmake CFLAGS="-std=gnu99" all install