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

Re: how to move with history?

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Jun 18, 2007, 20:31 UTC
Message-ID
<20070618203116.GK2334@fieldses.org>
In-Reply-To
<20070618202918.GM3037@cs-wsok.swansea.ac.uk>
On Mon, Jun 18, 2007 at 09:29:18PM +0100, Oliver Kullmann wrote:
Show 7 quoted lines
> On Mon, Jun 18, 2007 at 09:49:07PM +0200, Alex Riesen wrote:
> > Git does not keep "renaming history". It does not have to, as it keeps
> > how your project looked at each commit (point in history).
> 
> For my purposes, that is a bad thing, since I want to get rid off some parts
> of the history (specifically I want to eliminate some files from history),
> as explained in that last paragraph in my e-mail (with the motivation):

Oh, so even if somebody checks out a previous version of the project, you don't want them to see that file at the old name any more?

The git history is totally immutable, by design--the SHA1 name of a commit is taken over the commit, the contents of the entire tree at that point, and any commit(s) that precede this commit--hence it recursively summarizes the entire history of the project.

So if you want to erase all memory of a path from the git history, then you have to rebuild it all. Which is possible--it'd just mean creating a new project and writing a script to import every version into the new project....

--b.
Previous: Oliver KullmannNext: Frank Lichtenheld
Message 4 of 9 in “how to move with history?”
  1. Oliver KullmannJun 18, 2007
  2. Alex RiesenJun 18, 2007
  3. Oliver KullmannJun 18, 2007
  4. J. Bruce FieldsJun 18, 2007
  5. Frank LichtenheldJun 18, 2007
  6. Robin RosenbergJun 18, 2007
  7. Alex RiesenJun 18, 2007
  8. Oliver KullmannJun 19, 2007
  9. Jakub NarebskiJun 19, 2007

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.