Re: git tag's history
- From
David Aguilar <davvid@gmail.com>
- Date
- Jul 26, 2010, 09:36 UTC
- Message-ID
- <AANLkTikTqJVbohquiNmW0BvP0bXsVFyMw0H4qF2FbhiH@mail.gmail.com>
- In-Reply-To
- <AANLkTinCTcnr=tyC2+C4u5L0p_mXxTCMfSBm_JzqqMDW@mail.gmail.com>
On Sat, Jul 24, 2010 at 5:12 AM, Mahesh Vaidya <forvaidya@gmail.com> wrote:
Show 19 quoted lines
> If git tag's history is preserved or I need to implement this in > pre-receive hook > > Scenario > ^^^^^^^^^^^^ > I create a tag FOO -corresponding to a commit cdf123 > > FOO->cdf123 and I push this Tag to authoritative repository ; all fine. > > Now my buddy creates overwrite my tag (git tag -f) and now this tag > looks at some other commit > > FOO->123aff > > He does a push tag FOO; assuming no restriction in pre-receive this > push will get applied and my earlier cdf123 is lost. Is there any way > to retrive Tag's history or in need to implement some scheme > > Thx/ Mahesh
He won't be able to push the tag unless he forcibly deletes your tag first.
Tags do not have history. This is a non-technical problem. If s/he's deleting your tags, it's a social problem.
-- David