Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7880741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:13:00+00:00 2026-06-03T04:13:00+00:00

I tend to be a bit paranoid about my data, including the ability to

  • 0

I tend to be a bit paranoid about my data, including the ability to recover it.

Git reflog data is pruned after 30 days. Is there a way of setting it so that the reflog data is maintained and kept indefinitely?

Any major advantage or disadvantage (other than space or speed considerations) to doing so?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T04:13:02+00:00Added an answer on June 3, 2026 at 4:13 am

    Caveat: reflogs are local and are not sent/received with push/pull operations.

    Cons: reflogs may result in (otherwise) unreachable snapshots (and consequently blobs) being kept around, growing your repo to larger sizes than might be desirable. Look at gc.reflogexpireunreachable for something that may help in this respect.

    Two configuration settings govern the expiration of reflog entries:

    gc.reflogexpire, gc.<pattern>.reflogexpire

    git reflog expire removes reflog entries older than this time; defaults to 90 days. With “<pattern>” (e.g. “refs/stash”) in the middle the setting applies only to the
    refs that match the .

    gc.reflogexpireunreachable, gc.<ref>.reflogexpireunreachable

    git reflog expire removes reflog entries older than this time and are not reachable from the current tip; defaults to 30 days. With “<pattern>” (e.g. “refs/stash”) in the
    middle, the setting applies only to the refs that match the <pattern>.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tend to use the bisect command in git extensively. Now I want to
I noticed that Chinese characters tend to be a bit smaller in my website
There have been a lot of discussion around this and everyone tend to agree
Is there a simple way (i.e. without writing a script or elaborate keymap sequence)
I am porting some Haskell code to F# but a bit confused about the
I need a way to store large data chunks(~1-2MB) at a high rate (~200-300Mbit/s).
In a SOA - environment there tend to be a lot of projects in
I am a bit confused about the usage of cudaEvent_t . Currently, I am
I'm feeling a bit lost with my question about HTML5 code generation, and despite
I've read quite a bit about SQL Servers using SSDs performing much better than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.