美文网首页
Install git via source

Install git via source

作者: Android_Dev | 来源:发表于2022-11-05 17:26 被阅读0次

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

相关文章

网友评论

      本文标题:Install git via source

      本文链接:https://www.haomeiwen.com/subject/lnzfprtx.html