]> rtime.felk.cvut.cz Git - git.git/blobdiff - Documentation/git-gc.txt
Merge branch 'maint'
[git.git] / Documentation / git-gc.txt
index 189573a3b3d459822b465d39db2f90001ffc98d3..a9e0882e9b81fe15780785dc85e3fb2782480ae1 100644 (file)
@@ -88,6 +88,16 @@ 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.  This option defaults to '30 days'.
 
+The above two configuration variables can be given to a pattern.  For
+example, this sets non-default expiry values only to remote tracking
+branches:
+
+------------
+[gc "refs/remotes/*"]
+       reflogExpire = never
+       reflogexpireUnreachable = 3 days
+------------
+
 The optional configuration variable 'gc.rerereresolved' indicates
 how long records of conflicted merge you resolved earlier are
 kept.  This defaults to 60 days.