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

Re: exporting the last N days of a repository

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 3, 2008, 06:51 UTC
Message-ID
<alpine.DEB.1.00.0811030749470.22125@pacific.mpi-cbg.de.mpi-cbg.de>
In-Reply-To
<93c3eada0811021716y37ba999fkc2085b1060fbea2d@mail.gmail.com>
Hi,
On Mon, 3 Nov 2008, Geoff Russell wrote:
Show 17 quoted lines
> On Thu, Oct 30, 2008 at 1:40 AM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> >
> > On Wed, 29 Oct 2008, Geoff Russell wrote:
> >
> >> I want to export "the last N days" of a repository to create a copy 
> >> which has an origin which is the state of the repository N days ago 
> >> and has all the history between then and now.
> >>
> >> Can fast-export do this?
> >
> > Yes.  See the --since=... option.
> 
> Sorry, I didn't explain what I want very well.  N days ago I had a 
> working directory in a state S with files F1,F2,F3,...  I want to dump 
> all the history before then so that this is my new starting point, so I 
> want to keep all changes since then.

Well, if you are interested in the history of your _local_ ref, then you should use reflogs:

	$ git log --since=HEAD@{10.days.ago}

Hth, Dscho

P.S.: man git-reflog
Previous: Geoff RussellNext: Geoff Russell
Message 4 of 8 in “exporting the last N days of a repository”
  1. Geoff RussellOct 29, 2008
  2. Johannes SchindelinOct 29, 2008
  3. Geoff RussellNov 3, 2008
  4. Johannes SchindelinNov 3, 2008
  5. Geoff RussellNov 4, 2008
  6. Bob HiestandNov 5, 2008
  7. Geoff RussellNov 5, 2008
  8. Bob HiestandNov 5, 2008

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.