git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* About git log
@ 2015-04-06 14:21 niu2x
  2015-04-24 10:57 ` Kevin Daudt
  0 siblings, 1 reply; 2+ messages in thread
From: niu2x @ 2015-04-06 14:21 UTC (permalink / raw)
  To: git

I'm a beginner.
Please tell me the log of git commit is exist forever or 90 days

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: About git log
  2015-04-06 14:21 About git log niu2x
@ 2015-04-24 10:57 ` Kevin Daudt
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Daudt @ 2015-04-24 10:57 UTC (permalink / raw)
  To: niu2x; +Cc: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-24 10:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-06 14:21 About git log niu2x
2015-04-24 10:57 ` Kevin Daudt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).