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

Re: Purging old history

From
Phil Hord <phil.hord@gmail.com>
Date
Mar 31, 2012, 20:20 UTC
Message-ID
<CABURp0oYJOYvxK54A7e3J2N1V-0pDS_AAoRErXhg6pJ6ZW962Q@mail.gmail.com>
In-Reply-To
<17650-1333167969-40275@sneakemail.com>

On Sat, Mar 31, 2012 at 12:25 AM, John M. Dlugosz <ngnr63q02@sneakemail.com> wrote:

> Is there a simple way to delete old commits, say beyond a certain age,
> before putting it on the server?  The ancient stuff is not relevant and
> there are a lot of binaries.  Some users may have trouble with an extensive
> download when syncing the first time.

You may also choose to absolve the old commits of past sins (binaries and secrets) while keeping them in the history. See 'git help filter-branch' for the manual and some pertinent examples.

Phil
Previous: Jakub Narebski
Message 4 of 4 in “Purging old history”
  1. John M. DlugoszMar 31, 2012
  2. Ramkumar RamachandraMar 31, 2012
  3. Jakub NarebskiMar 31, 2012
  4. Phil HordMar 31, 2012

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.