$ git prune $(cd ../another && $(git-rev-parse --all))-
From db450ba3ae2b636d553d185caf436c76c0853bff Mon Sep 17 00:00:00 2001
From: Junio C Hamano git-prune [-n] [--] [<head>…] git-prune [-n] [--grace=<time>]
- Do not interpret any more arguments as options.
-
- In addition to objects
- reachable from any of our references, keep objects
- reachable from listed <head>s.
+ Do not prune loose objects that are younger than the
+ specified time. This gives a grace period to newly
+ created objects from getting pruned.
To prune objects not used by your repository nor another that
-borrows from your repository via its
-.git/objects/info/alternates: Written by Linus Torvalds <torvalds@osdl.org>SYNOPSIS
DESCRIPTION
EXAMPLE
-$ git prune $(cd ../another && $(git-rev-parse --all))
-Author
diff --git a/git-prune.txt b/git-prune.txt index a11e30309..fbd344da4 100644 --- a/git-prune.txt +++ b/git-prune.txt @@ -8,7 +8,7 @@ git-prune - Prunes all unreachable objects from the object database SYNOPSIS -------- -'git-prune' [-n] [--] [
...] +'git-prune' [-n] [--grace=
+
+ Instead of walking the commit ancestry chain, walk
+ reflog entries from the most recent one to older ones.
+ When this option is used you cannot specify commits to
+ exclude (that is, ^commit, commit1..commit2,
+ nor commit1…commit2 notations cannot be used).
+With --pretty format other than oneline (for obvious reasons),
+this causes the output to have two extra lines of information
+used in the output. When the starting commit is specified as
+instead. Under --pretty=oneline, the commit message is
+prefixed with this information on the same line.
+
+
- Shows <n> most recent ref-log entries for the given ref. + Shows <n> most recent ref-log entries for the given + ref. If <base> is given, <n> entries going back from + that entry. <base> can be specified as count or date
With this, git show-branch without extra parameters would show only the primary branches. In addition, if you happen to be on your topic branch, it is shown as well.
+$ git show-branch --reflog='10,1 hour ago' --list master+
shows 10 reflog entries going back from the tip as of 1 hour ago. +Without --list, the output also shows how these tips are +topologically related with each other.
git-tag - - Create or verify a tag object signed with GPG + Create, list, delete or verify a tag object signed with GPG
- Delete an existing tag with the given name + Delete existing tags with the given names.
- Create or verify a tag object signed with GPG. + Create, list, delete or verify a tag object signed with GPG.