0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 07:16:19 +01:00

templates/repo/empty.tmpl : fix repo setup instructions (#12122)

Co-authored-by: codeberg <codeberg@codeberg.org>
This commit is contained in:
Andreas Shimokawa 2020-07-03 23:22:14 +02:00 committed by GitHub
parent ae56411e9f
commit 510e4bd245
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@
<div class="markdown">
<pre><code>touch README.md
git init
{{if ne .Repository.DefaultBranch "master"}}git branch -m master {{.Repository.DefaultBranch}}{{end}}
{{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
git add README.md
git commit -m "first commit"
git remote add origin <span class="clone-url">{{if $.DisableSSH}}{{$.CloneLink.HTTPS}}{{else}}{{$.CloneLink.SSH}}{{end}}</span>