mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-03 00:02:43 +02:00
Fix some trivial problems (#34579)
This commit is contained in:
1 parent
d5bbaee64e
commit
e8d8984f7c
8 files changed
+46
-12
No files matched your search
@@ -47,7 +47,7 @@
|
||||
<h3>{{ctx.Locale.Tr "repo.create_new_repo_command"}}</h3>
|
||||
<div class="markup">
|
||||
<pre><code>touch README.md
|
||||
git init
|
||||
git init{{if ne .Repository.ObjectFormatName "sha1"}} --object-format={{.Repository.ObjectFormatName}}{{end}}{{/* for sha256 repo, it needs to set "object-format" explicitly*/}}
|
||||
{{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
|
||||
git add README.md
|
||||
git commit -m "first commit"
|
||||
|
||||
Reference in new issue
Block a user