Skip to content

Commit 0186e9e

Browse files
committed
Merge branch 'tz/branch-doc-remove-set-upstream'
"git branch --set-upstream" has been deprecated and (sort of) removed, as "--set-upstream-to" is the preferred one these days. The documentation still had "--set-upstream" listed on its synopsys section, which has been corrected. * tz/branch-doc-remove-set-upstream: branch doc: remove --set-upstream from synopsis
2 parents 7102541 + a060f3d commit 0186e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-branch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ SYNOPSIS
1414
[(--merged | --no-merged) [<commit>]]
1515
[--contains [<commit]] [--no-contains [<commit>]]
1616
[--points-at <object>] [--format=<format>] [<pattern>...]
17-
'git branch' [--set-upstream | --track | --no-track] [-l] [-f] <branchname> [<start-point>]
17+
'git branch' [--track | --no-track] [-l] [-f] <branchname> [<start-point>]
1818
'git branch' (--set-upstream-to=<upstream> | -u <upstream>) [<branchname>]
1919
'git branch' --unset-upstream [<branchname>]
2020
'git branch' (-m | -M) [<oldbranch>] <newbranch>
@@ -86,7 +86,7 @@ OPTIONS
8686
--delete::
8787
Delete a branch. The branch must be fully merged in its
8888
upstream branch, or in `HEAD` if no upstream was set with
89-
`--track` or `--set-upstream`.
89+
`--track` or `--set-upstream-to`.
9090

9191
-D::
9292
Shortcut for `--delete --force`.

0 commit comments

Comments
 (0)