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

Re: using multiple version of git simultaneously

From
Jeff King <peff@peff.net>
Date
Nov 17, 2012, 16:16 UTC
Message-ID
<20121117161631.GA18844@sigill.intra.peff.net>
In-Reply-To
<1353163831-ner-9354@calvin>
On Sat, Nov 17, 2012 at 02:50:31PM +0000, Tomas Carnecky wrote:
Show 6 quoted lines
> On Sat, 17 Nov 2012 20:25:21 +0600, arif <aftnix@gmail.com> wrote:
> > I'm trying to use different version of git simultaneously. So how can i
> > append some suffix (like "--program-suffix=git1.8) so that i can
> > distinguish between different versions.
> 
> Install each version into its own prefix (~/git/1.8.0/, ~/git/1.7.0/ etc).

Once you have done that, you can also symlink the binary from each into your regular PATH (e.g., ln -s ~/git/1.8.0/bin/git ~/bin/git.v1.8) to make it easy to switch between them. The installed exec-path is baked in at compile-time, so it finds the correct git sub-programs properly.

I keep a couple dozen built versions of git around like this for quick regression testing of bugs we see on the list.

-Peff
Previous: Tomas CarneckyNext: arif
Message 3 of 4 in “using multiple version of git simultaneously”
  1. arifNov 17, 2012
  2. Tomas CarneckyNov 17, 2012
  3. Jeff KingNov 17, 2012
  4. arifNov 18, 2012

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.