Skip to content

Commit 181ea68

Browse files
Sam Vilaingitster
authored andcommitted
git-remote: document -n
The 'show' and 'prune' commands accept an option '-n'; document what it does. Signed-off-by: Sam Vilain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 38d697a commit 181ea68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Documentation/git-remote.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,20 @@ branch the `HEAD` at the remote repository actually points at.
4949
'show'::
5050

5151
Gives some information about the remote <name>.
52+
+
53+
With `-n` option, the remote heads are not queried first with
54+
`git ls-remote <name>`; cached information is used instead.
5255

5356
'prune'::
5457

5558
Deletes all stale tracking branches under <name>.
5659
These stale branches have already been removed from the remote repository
5760
referenced by <name>, but are still locally available in
5861
"remotes/<name>".
62+
+
63+
With `-n` option, the remote heads are not confirmed first with `git
64+
ls-remote <name>`; cached information is used instead. Use with
65+
caution.
5966

6067
'update'::
6168

0 commit comments

Comments
 (0)