We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4169ee8 + f8075ff commit 89fde03Copy full SHA for 89fde03
changelog.d/20250622_121444_kurtmckee_rename_branches.rst
@@ -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