File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
book/03-git-branching/sections Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ $ git branch --no-merged master
7979[CAUTION]
8080====
8181Do not rename branches that are still in use by other collaborators.
82- Do not rename a branch like master/main/mainline without having read the section "Changing the master branch name" .
82+ Do not rename a branch like master/main/mainline without having read the section <<_changing_master>> .
8383====
8484
8585Suppose you have a branch that is called `bad-branch-name` and you want to change it to `corrected-branch-name`, while keeping all history.
@@ -123,6 +123,7 @@ $ git push origin --delete bad-branch-name
123123
124124Now the bad branch name is fully replaced with the corrected branch name.
125125
126+ [[_changing_master]]
126127===== Changing the master branch name
127128
128129[WARNING]
You can’t perform that action at this time.
0 commit comments