Skip to content

Commit 89fde03

Browse files
authored
Merge pull request #518 from kurtmckee/rename-branches
Document the branch name changes
2 parents 4169ee8 + f8075ff commit 89fde03

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Project development
2+
-------------------
3+
4+
* Rename the ``develop`` branch to ``main``,
5+
and rename the ``master`` branch to ``releases``.
6+
7+
To update local branches, run these commands
8+
(assuming that the upstream repository is named "origin"):
9+
10+
.. code-block:: bash
11+
12+
# Update local repo knowledge of the upstream repo.
13+
git fetch origin
14+
15+
# Rename and re-home the "develop" branch.
16+
git branch -m develop main
17+
git branch -u origin/main main
18+
19+
# Rename and re-home the "master" branch.
20+
git branch -m master releases
21+
git branch -u origin/releases releases
22+
23+
# Auto-detect the local repo's HEAD branch.
24+
git remote set-head origin -a

0 commit comments

Comments
 (0)