About git log

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

About git log

From: niu2x <hidden>
Date: 2016-06-15 23:04:23

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

Re: About git log

From: Kevin Daudt <hidden>
Date: 2016-06-15 23:04:32

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help