git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git versions

From
Jeff King <peff@peff.net>
Date
Jan 22, 2016, 22:37 UTC
Message-ID
<20160122223753.GB15635@sigill.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
Previous: Ashish YadavNext: Matthieu Moy
Message 2 of 5 in “git versions”
  1. Ashish YadavJan 22, 2016
  2. Jeff KingJan 22, 2016
  3. Matthieu MoyJan 22, 2016
  4. Ashish YadavJan 22, 2016
  5. Jeff KingJan 22, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.