git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Migration problems from SVN

From
Thomas Rast <trast@student.ethz.ch>
Date
Jan 6, 2009, 12:39 UTC
Message-ID
<200901061339.49843.trast@student.ethz.ch>
In-Reply-To
<c09652430901060409p23d2737ck6e41b3f8f1eaf01@mail.gmail.com>
Ø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
Previous: Øyvind HarboeNext: Øyvind Harboe
Message 2 of 3 in “Migration problems from SVN”
  1. Øyvind HarboeJan 6, 2009
  2. Thomas RastJan 6, 2009
  3. Øyvind HarboeJan 6, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.