# using multiple version of git simultaneously

4 messages from 2012-11-17 to 2012-11-18. Participants: arif, Tomas Carnecky, Jeff King.
Thread: https://gitlist.dev/t/32136

## arif, 2012-11-17 14:25

Subject: using multiple version of git simultaneously
Message-ID: <k886on$nn5$1@ger.gmane.org>
URL: https://gitlist.dev/e/k886on%24nn5%241%40ger.gmane.org

```
Hi,

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.
-- 
Cheers
arif

```

## Tomas Carnecky, 2012-11-17 14:50

Subject: Re: using multiple version of git simultaneously
Message-ID: <1353163831-ner-9354@calvin>
URL: https://gitlist.dev/e/1353163831-ner-9354%40calvin
In-Reply-To: <k886on$nn5$1@ger.gmane.org>

```
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).

```

## Jeff King, 2012-11-17 16:16

Subject: Re: using multiple version of git simultaneously
Message-ID: <20121117161631.GA18844@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20121117161631.GA18844%40sigill.intra.peff.net
In-Reply-To: <1353163831-ner-9354@calvin>

```
On Sat, Nov 17, 2012 at 02:50:31PM +0000, Tomas Carnecky wrote:

> 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

```

## arif, 2012-11-18 11:04

Subject: Re: using multiple version of git simultaneously
Message-ID: <50A8C0D2.3000001@gmail.com>
URL: https://gitlist.dev/e/50A8C0D2.3000001%40gmail.com
In-Reply-To: <20121117161631.GA18844@sigill.intra.peff.net>

```
On 11/17/2012 10:16 PM, Jeff King wrote:
> On Sat, Nov 17, 2012 at 02:50:31PM +0000, Tomas Carnecky wrote:
> 
>> On Sat, 17 Nov 2012 20:25:21 +0600, arif <aftnix@gmail.com> wrote:
<snip>
>
>> 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
> 

So what you are saying that, making a symlink for "git" is sufficient. I
don't need to make symlinks for ever git subbinaries.

Is that correct?


-- 
Cheers
arif

```
