aboutsummaryrefslogtreecommitdiffstats
path: root/git.sr.ht/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'git.sr.ht/index.md')
-rw-r--r--git.sr.ht/index.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/git.sr.ht/index.md b/git.sr.ht/index.md
index 091efdd..803e614 100644
--- a/git.sr.ht/index.md
+++ b/git.sr.ht/index.md
@@ -69,3 +69,11 @@ option` or `-o option=value`.
All of your push options, including ones not recognized by git.sr.ht itself, are
forwarded to any webhooks you have configured for your repository.
+
+## Changing the default branch
+
+If you wish to change your default branch, visit the settings tab of your
+repository. To rename your default branch, use something like the following:
+
+ git branch -m master main
+ git push origin :master main:main