git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Migration problems from SVN
@ 2009-01-06 12:09 Øyvind Harboe
  2009-01-06 12:39 ` Thomas Rast
  0 siblings, 1 reply; 3+ messages in thread
From: Øyvind Harboe @ 2009-01-06 12:09 UTC (permalink / raw)
  To: git

Hi all,

I'm trying to migrate from svn to git, but has run into a snag for which
I haven't found any good solutions on the web:

If I early on and accidentally commit a *large* binary object, how do I get rid
of it from .git again?

svn copes with this reasonably well as the binary object will no longer be
downloaded if it is deleted. Also when converting old SVN repositories,
such objects needs to be pruned.  Somewhat related I also need to enumerate
the offending large binary objects that I should get rid of.

It is unpractical to live by the rule that no big objects should ever
be committed
accidentally given the number of people involved and the walks of life they come
from.... So there really needs to be some way to deal with this once the
damage has been done.


-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer

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

* Re: Migration problems from SVN
  2009-01-06 12:09 Migration problems from SVN Øyvind Harboe
@ 2009-01-06 12:39 ` Thomas Rast
  2009-01-06 12:44   ` Øyvind Harboe
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Rast @ 2009-01-06 12:39 UTC (permalink / raw)
  To: Øyvind Harboe; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

Øyvind Harboe wrote:
> If I early on and accidentally commit a *large* binary object, how do I get rid
> of it from .git again?

git-filter-branch can do that.  See the top of the EXAMPLES section in

  http://www.kernel.org/pub/software/scm/git/docs/git-filter-branch.html

This requires a rewrite of all history affected; make sure you
understand the implications if you have already published it.  See the
DISCUSSION in the same manpage.

Also note that due to the distributed nature, you cannot force such
changed history upon anyone; i.e., you cannot remove the objects from
anyone else's repository.  You can only ask them to accept your new
history and forget that the old one was ever there.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch



[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: Migration problems from SVN
  2009-01-06 12:39 ` Thomas Rast
@ 2009-01-06 12:44   ` Øyvind Harboe
  0 siblings, 0 replies; 3+ messages in thread
From: Øyvind Harboe @ 2009-01-06 12:44 UTC (permalink / raw)
  To: Thomas Rast; +Cc: git

On Tue, Jan 6, 2009 at 1:39 PM, Thomas Rast <trast@student.ethz.ch> wrote:
> Øyvind Harboe wrote:
>> If I early on and accidentally commit a *large* binary object, how do I get rid
>> of it from .git again?
>
> git-filter-branch can do that.  See the top of the EXAMPLES section in

Ah! Thanks! I will study this. Thanks for your patience with a beginner, I guess
I should have spotted this one. There is a lot to read and git is refreshingly
different and there is a lot of things to catch up on.




-- 
Øyvind Harboe
http://www.zylin.com/zy1000.html
ARM7 ARM9 XScale Cortex
JTAG debugger and flash programmer

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

end of thread, other threads:[~2009-01-06 12:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 12:09 Migration problems from SVN Øyvind Harboe
2009-01-06 12:39 ` Thomas Rast
2009-01-06 12:44   ` Øyvind Harboe

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