aboutsummaryrefslogtreecommitdiffstats
path: root/git.sr.ht
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-08-05 10:12:54 -0400
committerDrew DeVault <sir@cmpwn.com>2020-08-05 10:12:54 -0400
commit60d8b519d4d789b7fc863095b2a97078eb728fdd (patch)
treea0cca0bc83044ec25e85c381d4bafa958f0a21a5 /git.sr.ht
parent69ed3bb4dd1f55db15bf9798c04e06eaa78a632b (diff)
downloadsr.ht-docs-60d8b519d4d789b7fc863095b2a97078eb728fdd.tar.gz
Update git.sr.ht with branch renaming instructions
Diffstat (limited to 'git.sr.ht')
-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