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

Re: About git log

From
Kevin Daudt <me@ikke.info>
Date
Apr 24, 2015, 10:57 UTC
Message-ID
<20150424105724.GA11455@vps892.directvps.nl>
In-Reply-To
<1428330097.5157.5.camel@localhost>
On Mon, Apr 06, 2015 at 10:21:37PM +0800, niu2x wrote:
> I'm a beginner.
> Please tell me the log of git commit is exist forever or 90 days

As long as a commit is (indirectly) referenced by a branch or tag, it will be kept forever. Only if you rewrite history causing commits to be unreferenced (for example, by using git reset --hard), the commits will be eventually removed.

The 90 days you might have heard of, refers to the time the reflog keeps reference to commits so that you can find them back in case you accidentally caused the commit to be unreferenced.

Entries in the reflog will expire after 90 days, after which no reference to the commits remain, and the garbage collector will remove those commits.

Previous: niu2x
Message 2 of 2 in “About git log”
  1. niu2xApr 6, 2015
  2. Kevin DaudtApr 24, 2015

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.