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

Re: Adding History

From
John Tapsell <johnflux@gmail.com>
Date
Mar 20, 2009, 05:25 UTC
Message-ID
<43d8ce650903192225wdd2c46ai7954afbb0034ba53@mail.gmail.com>
In-Reply-To
<20090319174732.GS23521@spearce.org>
2009/3/19 Shawn O. Pearce <spearce@spearce.org>:
Show 15 quoted lines
> Roger Garvin <yoyodyn@gmail.com> wrote:
>> Is there a way to add history to a repository?
>> We have just started using git, where before we had nothing but backup
>> directories all over the place.  We created the git repository using our
>> existing source directory.  Is there a way to now go and add some of the backup
>> source directories to the history?  Or would this break all the SHA1 of the
>> current objects?
>
> Right, you need to change the SHA-1 of all of the commits in order
> to insert history in the past.
>
>> I am not sure it would be worth it at this point.  But we are
>> still pretty early in our use of git so now would be the easiest time.
>
> You have two options:
Couldn't you just create import the whole tree and then rebase on top of it?
Previous: Shawn O. Pearce
Message 3 of 3 in “Adding History”
  1. Roger GarvinMar 19, 2009
  2. Shawn O. PearceMar 19, 2009
  3. John TapsellMar 20, 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.