Skip to content

Commit dbf35bb

Browse files
committed
feat: initial commit
1 parent c5e10ef commit dbf35bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/setup-git.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
2121
"""Set up the provided cookiecutter-robust-python project's git repo."""
2222
commands: list[list[str]] = [
2323
["git", "init"],
24-
["git", "branch", "-M", "main"],
24+
["git", "branch", "-m", "master", "main"],
25+
["git", "checkout", "main"],
2526
["git", "remote", "add", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
2627
["git", "remote", "set-url", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
2728
["git", "fetch", "origin"],
29+
["git", "pull"],
2830
["git", "push", "-u", "origin", "main"],
2931
["git", "checkout", "-b", "develop", "main"],
3032
["git", "push", "-u", "origin", "develop"],

0 commit comments

Comments
 (0)