diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-02-15 01:15:52 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-15 01:15:52 +0300 |
commit | 26fc32604455486503e1a6dcde835eaf2b6d7999 (patch) | |
tree | 3bd8ffe07c0e0d29b8ec86c3027b0f4c0a1ce252 /Documentation | |
parent | 1f071460d3c367ee87d2d15add2388da2c6c68df (diff) | |
parent | bf08abac565fa64eeaa56d2eb21ce1a9d2371358 (diff) |
Merge branch 'jc/doc-branch-update-checked-out-branch' into maint-2.39
Document that "branch -f <branch>" disables only the safety to
avoid recreating an existing branch.
* jc/doc-branch-update-checked-out-branch:
branch: document `-f` and linked worktree behaviour
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-branch.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 12c5f84e3b..2aaf13b45d 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -123,6 +123,10 @@ OPTIONS points to a valid commit. In combination with `-m` (or `--move`), allow renaming the branch even if the new branch name already exists, the same applies for `-c` (or `--copy`). ++ +Note that 'git branch -f <branchname> [<start-point>]', even with '-f', +refuses to change an existing branch `<branchname>` that is checked out +in another worktree linked to the same repository. -m:: --move:: |