Skip to content

Commit a4dee15

Browse files
committed
Expand master branch change section:
- Add item to list - Explain how to remove the master branch
1 parent 6a6fb43 commit a4dee15

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

book/03-git-branching/sections/branch-management.asc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,10 @@ Now you have a few more tasks in front of you to complete the transition:
175175
* Release scripts.
176176
* Repository configuration settings (like the default branch that is targeted for pull-requests, branch-protection measures, etc).
177177
* References to the old branch in documentation.
178+
* Close/merge pull requests that target the old branch
179+
180+
After you've done all these tasks, and are certain the main branch performs just as the _master_ branch, you can delete the _master_ branch:
181+
[source, console]
182+
----
183+
$ git push origin --delete master
184+
----

0 commit comments

Comments
 (0)