# git versions

5 messages from 2016-01-22 to 2016-01-22. Participants: Ashish Yadav, Jeff King, Matthieu Moy.
Thread: https://gitlist.dev/t/41242

## Ashish Yadav, 2016-01-22 17:15

Subject: git versions
Message-ID: <loom.20160122T180812-568@post.gmane.org>
URL: https://gitlist.dev/e/loom.20160122T180812-568%40post.gmane.org

```
I am using git v1.7.12.4 w CentOS 6.5. Can I upgrade 1.7.1-3 to 2.7?

```

## Jeff King, 2016-01-22 22:37

Subject: Re: git versions
Message-ID: <20160122223753.GB15635@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20160122223753.GB15635%40sigill.intra.peff.net
In-Reply-To: <loom.20160122T180812-568@post.gmane.org>

```
On Fri, Jan 22, 2016 at 05:15:23PM +0000, Ashish Yadav wrote:

> I am using git v1.7.12.4 w CentOS 6.5. Can I upgrade 1.7.1-3 to 2.7?

Probably. :)

I don't know much about what has been packaged for CentOS 6.5, but you
can certainly build the latest version of git from source. You can get
tarballs at:

  https://www.kernel.org/pub/software/scm/git/

Or you can just clone the git repository at:

  git://git.kernel.org/pub/scm/git/git.git

If you are asking "can I upgrade to v2.7 and still use my existing
repositories?", then the answer is yes, everything should continue to
work, and you can fetch and push between servers running arbitrary git
versions.

You may want to look at the release notes in Documentation/RelNotes, as
some of the defaults have changed (especially around the v2.0 release).

-Peff

```

## Matthieu Moy, 2016-01-22 22:42

Subject: Re: git versions
Message-ID: <vpqk2n1z15o.fsf@anie.imag.fr>
URL: https://gitlist.dev/e/vpqk2n1z15o.fsf%40anie.imag.fr
In-Reply-To: <20160122223753.GB15635@sigill.intra.peff.net>

```
Jeff King <peff@peff.net> writes:

> On Fri, Jan 22, 2016 at 05:15:23PM +0000, Ashish Yadav wrote:
>
>> I am using git v1.7.12.4 w CentOS 6.5. Can I upgrade 1.7.1-3 to 2.7?
>
> Probably. :)

Surely ;-).

I have a CentOS 6.5 with Git 2.6 on it. It was installed from source
(I'm not the one who installed it, but I think the installation was
rather painless).

On the other hand, I don't think you'll find an RPM package, you'll need
to compile it yourself.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

```

## Ashish Yadav, 2016-01-22 22:52

Subject: Re: git versions
Message-ID: <D2C80EAC.13C5A%ashish.yadav@firemon.com>
URL: https://gitlist.dev/e/D2C80EAC.13C5A%25ashish.yadav%40firemon.com
In-Reply-To: <vpqk2n1z15o.fsf@anie.imag.fr>

```
Thanks.

I just wanted to know if I can upgrade straight from v1.7.1-3 to v2.7 or
do I need to upgrade to an intermediate version.


On 1/22/16, 4:42 PM, "Matthieu Moy" <Matthieu.Moy@grenoble-inp.fr> wrote:

>Jeff King <peff@peff.net> writes:
>
>> On Fri, Jan 22, 2016 at 05:15:23PM +0000, Ashish Yadav wrote:
>>
>>> I am using git v1.7.12.4 w CentOS 6.5. Can I upgrade 1.7.1-3 to 2.7?
>>
>> Probably. :)
>
>Surely ;-).
>
>I have a CentOS 6.5 with Git 2.6 on it. It was installed from source
>(I'm not the one who installed it, but I think the installation was
>rather painless).
>
>On the other hand, I don't think you'll find an RPM package, you'll need
>to compile it yourself.
>
>-- 
>Matthieu Moy
>http://www-verimag.imag.fr/~moy/

```

## Jeff King, 2016-01-22 22:53

Subject: Re: git versions
Message-ID: <20160122225340.GB16396@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20160122225340.GB16396%40sigill.intra.peff.net
In-Reply-To: <D2C80EAC.13C5A%ashish.yadav@firemon.com>

```
On Fri, Jan 22, 2016 at 10:52:47PM +0000, Ashish Yadav wrote:

> Thanks.
> 
> I just wanted to know if I can upgrade straight from v1.7.1-3 to v2.7 or
> do I need to upgrade to an intermediate version.

No, there should no reason to need an intermediate version.

-Peff

```
