git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Manipulating existing revisions by push or pull?
@ 2009-11-16 21:49 Lasse Kliemann
  2009-11-16 21:53 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Lasse Kliemann @ 2009-11-16 21:49 UTC (permalink / raw)
  To: git

I've got a conceptual question.

I know that one can change history in a local repository with the 
'rebase' command, e.g., using the interactive mode. 

Is there any way to modify existing revisions in a local 
repository by a pull (and merge, whatever) from a remote one? Or 
is there any way to modify existing revisions in a remote 
repository by a push (or whatever) from a local one?

Put a different way: consider there is a hostile entity from 
which I pull or which I allow to push to me. Can this entity 
fiddle with my history? Can it change the data in existing 
revisions in my repository? Or can it only make new revisions 
grow on my side?

Thank you
Lasse

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Manipulating existing revisions by push or pull?
  2009-11-16 21:49 Manipulating existing revisions by push or pull? Lasse Kliemann
@ 2009-11-16 21:53 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2009-11-16 21:53 UTC (permalink / raw)
  To: Lasse Kliemann; +Cc: git

"Lasse Kliemann" <lasse-gmane-git-2009@mail.plastictree.net> writes:

> Put a different way: consider there is a hostile entity from 
> which I pull or which I allow to push to me. Can this entity 
> fiddle with my history? Can it change the data in existing 
> revisions in my repository? Or can it only make new revisions 
> grow on my side?

If you allow your ref to get updated to an arbitrary value, you are lost,
unless you have signed tags that anchor things in place, in which case you
can trust the part of history that is reachable from them.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-16 21:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-16 21:49 Manipulating existing revisions by push or pull? Lasse Kliemann
2009-11-16 21:53 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).