Skip to content

Commit 510e4bd

Browse files
templates/repo/empty.tmpl : fix repo setup instructions (#12122)
Co-authored-by: codeberg <[email protected]>
1 parent ae56411 commit 510e4bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/empty.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
<div class="markdown">
5050
<pre><code>touch README.md
5151
git init
52-
{{if ne .Repository.DefaultBranch "master"}}git branch -m master {{.Repository.DefaultBranch}}{{end}}
52+
{{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
5353
git add README.md
5454
git commit -m "first commit"
5555
git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span>

0 commit comments

Comments
 (0)