Install git via source

1 git clone https://github.com/git/git.git
2 cd git
3 export NO_GETTEXT=1 && make
4 make install
Note: Set NO_GETTEXT=1 to disable localization support and make Git only use English.Normally you can just do "make" followed by "make install", and that will install the git programs in your own ~/bin/ directory.
So make sure you have ~/bin added to your PATH

If you want to do a global install, you can do
# $ make prefix=/usr all doc info ;# as yourself
# make prefix=/usr install install-doc install-html install-info ;# as rootAnd
(or prefix=/usr/local, of course). Just like any program suite
that uses prefix, the built results have some paths encoded, which are derived fromprefix, so "make all; make prefix=/usr
install" would not work.

https://github.com/git/git/blob/master/INSTALL

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容