Upgrading git from the source repository in Ubuntu

萝らか妹 提交于 2019-11-26 07:49:54

问题


I want to upgrade git using the source repository in Ubuntu. As you note, the last stable version is the 2.0.2, but I have the 1.9.4.

I cloned the git repo, but I\'m not sure how to continue.

I want to do that in some way I can understand how to interact with the branches and tags of the repo, so I am not searching solutions of this type

Please help!


回答1:


2.0.2 has been uploaded 3 days ago in this PPA: https://launchpad.net/~git-core/+archive/ubuntu/ppa

sudo add-apt-repository ppa:git-core/ppa

But if this isn't what you want, and you have clone the git repo, then

sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev bzip2
cd /path/to/local/clone/of/git
./configure
make
sudo make install


来源:https://stackoverflow.com/questions/24846321/upgrading-git-from-the-source-repository-in-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!