# question on alternates

2 messages from 2007-07-24 to 2007-07-24. Participants: Michael S. Tsirkin, Jakub Narebski.
Thread: https://gitlist.dev/t/9195

## Michael S. Tsirkin, 2007-07-24 10:00

Subject: question on alternates
Message-ID: <20070724100053.GA18701@mellanox.co.il>
URL: https://gitlist.dev/e/20070724100053.GA18701%40mellanox.co.il

```
Is it possible to add an alternate to .git/objects/info/alternates
to an existig repository, after the fact?
If I do, is there a way to find and remove objects that
already exist in the alternate?

Thanks,

-- 
MST

```

## Jakub Narebski, 2007-07-24 10:05

Subject: Re: question on alternates
Message-ID: <f84iu9$e27$1@sea.gmane.org>
URL: https://gitlist.dev/e/f84iu9%24e27%241%40sea.gmane.org
In-Reply-To: <20070724100053.GA18701@mellanox.co.il>

```
Michael S. Tsirkin wrote:

> Is it possible to add an alternate to .git/objects/info/alternates
> to an existig repository, after the fact?

Yes.

> If I do, is there a way to find and remove objects that
> already exist in the alternate?

I guess "git repack -a -d -l" (or "git gc --prune").

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

```
