What is the difference between gc.pruneExpire, gc.reflogExpire and gc.reflogExpireUnreachable?

I want to extend the time old commits are kept around, to extend git’s default “grace period” before garbage collects occurs. I don’t want to keep all unreachable commits, such as the temporary, intermediate ones made during the process of a rebase, just those belonging at one time to past versions of a branch, across rebases. In other words, I want to keep past versions of each branch for longer than 30 or 90 days.

Which led me to the gc.pruneExpire, gc.reflogExpire and gc.reflogExpireUnreachable settings.

My understanding is the as long as a commit is reachable from the reflog, which includes references to prior histories of each ref, then the gc.pruneExpire value does not apply, which is about pruning commits.

If that is correct (please confirm), then what I need to do is control reflog pruning, via either gc.reflogExpire or gc.reflogExpireUnreachable.

But the distinction between the two is not obvious, which is to say, I don’t know what either means exactly. git config help isn’t very clear:

gc.reflogExpire, gc.<pattern>.reflogExpire
    git reflog expire removes reflog entries older than this time; defaults to 90 days. The value
    "now" expires all entries immediately, and "never" suppresses expiration altogether. With
    "<pattern>" (e.g. "refs/stash") in the middle the setting applies only to the refs that match
    the <pattern>.

gc.reflogExpireUnreachable, gc.<pattern>.reflogExpireUnreachable
    git reflog expire removes reflog entries older than this time and are not reachable from the
    current tip; defaults to 30 days. The value "now" expires all entries immediately, and "never"
    suppresses expiration altogether. With "<pattern>" (e.g. "refs/stash") in the middle, the
    setting applies only to the refs that match the <pattern>.

    These types of entries are generally created as a result of using git commit --amend or git
    rebase and are the commits prior to the amend or rebase occurring. Since these changes are not
    part of the current project most users will want to expire them sooner, which is why the default
    is more aggressive than gc.reflogExpire.

I don’t understand “not reachable from the current tip”, because I thought the whole point of the reflog is to track old, not current, refs. Also confusing is “the commits prior to the amend or rebase occurring”, because, again, I thought that was what the reflog was about, what references pointed to prior to rebases or amends.

To reiterate, i want to keep a history of past versions of a ref, across all rebases, for longer than 90 days. Which setting should I set?

(tangential question: is setting it to ’12.months.ago’ a bad idea?)

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật