From: Kevin Daudt <me@ikke.info>
To: niu2x <niu2x@aol.com>
Cc: git@vger.kernel.org
Subject: Re: About git log
Date: Fri, 24 Apr 2015 12:57:24 +0200 [thread overview]
Message-ID: <20150424105724.GA11455@vps892.directvps.nl> (raw)
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.
prev parent reply other threads:[~2015-04-24 10:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-06 14:21 About git log niu2x
2015-04-24 10:57 ` Kevin Daudt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150424105724.GA11455@vps892.directvps.nl \
--to=me@ikke.info \
--cc=git@vger.kernel.org \
--cc=niu2x@aol.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).