Skip to content

Commit c96da61

Browse files
ashimokawaCodeberg-orgzeripath
authored
templates/repo/empty.tmpl : fix repo setup instructions (go-gitea#12147)
Co-authored-by: codeberg <[email protected]> Co-authored-by: zeripath <[email protected]>
1 parent e46dbec commit c96da61

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)