{{template "base/head" .}}
{{template "repo/header" .}}
{{template "base/alert" .}} {{if .Repository.IsArchived}}
{{.i18n.Tr "repo.archive.title"}}
{{end}} {{if .Repository.IsBroken}}
{{.i18n.Tr "repo.broken_message"}}
{{else if .CanWriteCode}}

{{.i18n.Tr "repo.quick_guide"}}

{{.i18n.Tr "repo.clone_this_repo"}} {{.i18n.Tr "repo.clone_helper" "http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository" | Str2html}}

{{template "repo/clone_buttons" .}}
{{if not .Repository.IsArchived}}

{{.i18n.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 {{$.CloneLink.HTTPS}}
git push -u origin {{.Repository.DefaultBranch}}

{{.i18n.Tr "repo.push_exist_repo"}}

git remote add origin {{$.CloneLink.HTTPS}}
git push -u origin {{.Repository.DefaultBranch}}
{{end}} {{else}}
{{.i18n.Tr "repo.empty_message"}}
{{end}}
{{template "base/footer" .}}