Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.45 KB

git.md

File metadata and controls

59 lines (43 loc) · 1.45 KB

Git

VSTS and TFS require git >= 2.9. For windows, the agent bundles portable git. For OSX and Linux, it is a pre-requisite.

OSX

If you use git, git >= 2.9.0 is a pre-requisite for OSX agents.

We recommend using home brew to install

$ brew update
$ brew install git
==> Downloading https://homebrew.bintray.com/bottles/git-2.9.0.el_capitan.bottle.tar.gz
...
(restart terminal)
$ git --version
git version 2.9.0
$ which git
/usr/local/bin/git
$ ls -la /usr/local/bin/git
... /usr/local/bin/git -> ../Cellar/git/2.9.0/bin/git

Ubuntu

If you use git, git >= 2.9.0 is a pre-requisite for Ubuntu agents.

Install Latest Git on Ubuntu

$ sudo apt-add-repository ppa:git-core/ppa
$ sudo apt-get update
$ sudo apt-get install git

Redhat and CentOS

If you use git, git >= 2.9.0 is a pre-requisite for Redhat/CentOS agents.

Based on Install Latest Git on Redhat/Centos

$ yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
$ yum install gcc perl-ExtUtils-MakeMaker

$ cd /usr/src
$ wget https://www.kernel.org/pub/software/scm/git/git-2.9.2.tar.gz
$ tar xzf git-2.9.2.tar.gz

$ cd git-2.9.2
$ make prefix=/usr/local/git all
$ make prefix=/usr/local/git install

In /etc/bashrc

export PATH=$PATH:/usr/local/git/bin