{{template "base/alert" .}}
				{{if .Repository.IsArchived}}
					
				{{end}}
				{{if .Repository.IsBroken}}
					
						
							
						{{if not .Repository.IsArchived}}
							
							
								
							
							
								
									
							
						{{end}}
					
				{{else}}
					
		{{ctx.Locale.Tr "repo.broken_message"}}
				{{else if .RepoHasContentsWithoutBranch}}
					{{ctx.Locale.Tr "repo.no_branch"}}
				{{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"}}
{{ctx.Locale.Tr "repo.create_new_repo_command"}}
									{{$gitRemoteName := $.SystemConfig.Repository.GitGuideRemoteName.Value ctx}}
									
							touch README.md
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"
git remote add {{$gitRemoteName}} {{$.CloneButtonOriginLink.HTTPS}}
git push -u {{$gitRemoteName}} {{.Repository.DefaultBranch}}{{ctx.Locale.Tr "repo.push_exist_repo"}}
git remote add {{$gitRemoteName}} {{$.CloneButtonOriginLink.HTTPS}}
git push -u {{$gitRemoteName}} {{.Repository.DefaultBranch}}{{ctx.Locale.Tr "repo.empty_message"}}
				{{end}}