+ {{template "repo/header" .}} +
+
+
+ {{template "base/alert" .}} + {{if .Repository.IsArchived}} +
+ {{if .Repository.ArchivedUnix.IsZero}} + {{ctx.Locale.Tr "repo.archive.title"}} + {{else}} + {{ctx.Locale.Tr "repo.archive.title_date" (DateTime "long" .Repository.ArchivedUnix)}} + {{end}} +
+ {{end}} + {{if .Repository.IsBroken}} +
+ {{ctx.Locale.Tr "repo.broken_message"}} +
+ {{else if .CanWriteCode}} +

+ {{ctx.Locale.Tr "repo.quick_guide"}} +

+
+
+

{{ctx.Locale.Tr "repo.clone_this_repo"}} {{ctx.Locale.Tr "repo.clone_helper" "http://git-scm.com/book/en/v2/Git-Basics-Getting-a-Git-Repository"}}

+ +
+ {{if and .CanWriteCode (not .Repository.IsArchived)}} + + {{ctx.Locale.Tr "repo.editor.new_file"}} + + {{if .RepositoryUploadEnabled}} + + {{ctx.Locale.Tr "repo.editor.upload_file"}} + + {{end}} + {{end}} +
+ {{template "repo/clone_buttons" .}} +
+
+
+ + {{if not .Repository.IsArchived}} +
+ +
+

{{ctx.Locale.Tr "repo.create_new_repo_command"}}

+
+
touch README.md
+git init
+{{if ne .Repository.DefaultBranch "master"}}git checkout -b {{.Repository.DefaultBranch}}{{end}}
+git add README.md
+git commit -m "first commit"
+git remote add origin {{$.CloneButtonOriginLink.HTTPS}}
+git push -u origin {{.Repository.DefaultBranch}}
+
+
+
+ +
+

{{ctx.Locale.Tr "repo.push_exist_repo"}}

+
+
git remote add origin {{$.CloneButtonOriginLink.HTTPS}}
+git push -u origin {{.Repository.DefaultBranch}}
+
+
+ {{end}} + {{else}} +
+ {{ctx.Locale.Tr "repo.empty_message"}} +
+ {{end}} + {{template "repo/clone_script" .}} +
+
+
+
+