1package repo
 2
 3import (
 4	"fmt"
 5	"strings"
 6
 7	"github.com/charmbracelet/soft-serve/server/config"
 8)
 9
10func defaultEmptyRepoMsg(cfg *config.Config, repo string) string {
11	publicURL := cfg.SSH.PublicURL
12	repo = strings.TrimSuffix(repo, ".git")
13	return fmt.Sprintf(`# Quick Start
14
15Get started by cloning this repository, add your files, commit, and push.
16
17## Clone this repository.
18
19`+"```"+`sh
20git clone %[1]s/%[2]s.git
21`+"```"+`
22
23## Creating a new repository on the command line
24
25`+"```"+`sh
26touch README.md
27git init
28git add README.md
29git branch -M main
30git commit -m "first commit"
31git remote add origin %[1]s/%[2]s.git
32git push -u origin main
33`+"```"+`
34
35## Pushing an existing repository from the command line
36
37`+"```"+`sh
38git remote add origin %[1]s/%[2]s.git
39git push -u origin main
40`+"```"+`
41`, publicURL, repo)
42}