From 159543e8317cd13611dc999efddd3a89c11c1229 Mon Sep 17 00:00:00 2001 From: Philip Oakley Date: Sat, 21 Sep 2013 16:51:45 +0100 Subject: remote doc: document long forms of set-head options "git remote set-head" has always supported --add and --delete as synonyms for the -a and -d option but forgot to document them. Signed-off-by: Philip Oakley Signed-off-by: Jonathan Nieder --- Documentation/git-remote.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Documentation/git-remote.txt') diff --git a/Documentation/git-remote.txt b/Documentation/git-remote.txt index 9c3e3bf83a..2507c8bd91 100644 --- a/Documentation/git-remote.txt +++ b/Documentation/git-remote.txt @@ -13,7 +13,7 @@ SYNOPSIS 'git remote add' [-t ] [-m ] [-f] [--[no-]tags] [--mirror=] 'git remote rename' 'git remote remove' -'git remote set-head' (-a | -d | ) +'git remote set-head' (-a | --auto | -d | --delete | ) 'git remote set-branches' [--add] ... 'git remote set-url' [--push] [] 'git remote set-url --add' [--push] @@ -101,9 +101,9 @@ branch. For example, if the default branch for `origin` is set to `master`, then `origin` may be specified wherever you would normally specify `origin/master`. + -With `-d`, the symbolic ref `refs/remotes//HEAD` is deleted. +With `-d` or `--delete`, the symbolic ref `refs/remotes//HEAD` is deleted. + -With `-a`, the remote is queried to determine its `HEAD`, then the +With `-a` or `--auto`, the remote is queried to determine its `HEAD`, then the symbolic-ref `refs/remotes//HEAD` is set to the same branch. e.g., if the remote `HEAD` is pointed at `next`, "`git remote set-head origin -a`" will set the symbolic-ref `refs/remotes/origin/HEAD` to `refs/remotes/origin/next`. This will -- cgit v1.2.3