Install Git from Latest Source on Ubuntu

Install dependencies

sudo apt-get update
sudo apt-get install libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext

Download Git source code

wget https://github.com/git/git/archive/master.zip

Unzip and install

If you have not unzip installed on your system yet, please run sudo apt-get install unzip to install this tool.

unzip master.zip
cd git-master
make prefix=/usr/local all
sudo make prefix=/usr/local install

Upgrade to a newer version

git clone https://github.com/git/git.git
cd git
make prefix=/usr/local all
sudo make prefix=/usr/local install
时间: 2024-10-07 04:23:40

Install Git from Latest Source on Ubuntu的相关文章

ubuntu install git vim Plug manage

在UBUNTU采用163或是阿里云来更新源,最新的更新源地址可以在网上查阅, 阿里源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu

Install Redmine 3.2.0 on Ubuntu 14.04

To install redmine 3.2.0 on Ubuntu 14.04, mainly follow the tutorial: HowTo Install Redmine 3.0.x on Ubuntu 14.04 with Apache2, Phusion Passenger, MySQL, Subversion and Git (Gitolite) During the install process, some problems are encountered. The res

配置android source 在ubuntu中编译环境

在Ubuntu中可以配置 android source 编译环境,推荐使用最新的64位的Ubuntu  LTS(Long Time Support); 1.安装JDK. AOSP主分支代码需要java7,在Ubuntu上可以使用 OpenJDK. 安装java7的命令: $ sudo apt-get update $ sudo apt-get install openjdk-7-jdk 如果系统中已安装有java环境,可以将其进行更新: $ sudo update-alternatives --

How to Install Git on CentOS 6

IntroductionGit is an open source, distributed version control system (VCS). It’s commonly used for source code management (SCM), with sites like GitHub offering a social coding experience, and popular projects such as Perl, Ruby on Rails, and the Li

【Git入门之十三】Ubuntu和git

[Git入门之十三]Ubuntu和git - JackyStudio - 博客频道 - CSDN.NET 之前我们都是在Windows平台下操作git.现在我们改用Ubuntu试一试吧!先准备好Ubuntu或者Linux系统吧.这里采用13.04版本虚拟机环境 1.Ubuntu下使用git 打开终端(Ctrl+Alt+T).Ubuntu下就没有git bash了,都是使用terminal. 1.1.安装SSH ? [cpp]?view plaincopy ? sudo?apt-get?insta

【转】install intel wireless 3165 driver for ubuntu 14.04.3

[转]install intel wireless 3165 driver for ubuntu 14.04.3 Ubuntu 14.04.3 with 3.19 kernel can’t drive the new Intel Wireless 3165 AC with firmware version 13.This is about how to install the driver mannually. Today I changed a new Dell vastro 5000 ser

Git on Android source

Git是一个开源的分布式版本控制系统,用以有效.高速的处理从很小到非常大的项目版本管理. 分布式和集中式的最大区别在于开发者可以本地提交.每个开发者机器上都有一个服务器的数据库. 下图是经典的git开发过程. Git的功能特性: 从一般开发者的角度来看,git有以下功能: 1:从服务器上克隆数据库(包括代码和版本信息)到单机上. 2:在自己的机器上创建分支,修改代码. 3:在单机上自己创建的分支上提交代码. 4:在单机上合并分支. 5:新建一个分支,把服务器上最新版的代码fetch下来,然后跟自

Git版本库的创建(Ubuntu)

在Ubuntu上学习Git随笔. 一. git 仓库的安装 git 在终端用git命令查看Ubuntu是否安装git版本库,如果没有安装,最新版本(Ubuntu18.04)会提示用下面命令进行安装. sudo apt install git 如果老版本用下面几个命令试一下 sudo apt-get install git sudo apt-get install git-core 二.创建一个 git 版本库: 1.选择一个要创建这个文件的位置,例如在  我的 /home/cyp 下创建 ler

cygwin install git

Installation with Cygwin If you're comfortable with Cygwin, then use it to install git, ssh, wget and python. Install pip, and use pip to install git-review: $ wget http://peak.telecommunity.com/dist/ez_setup.py $ python ez_setup.py $ easy_install pi