We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5e10ef commit dbf35bbCopy full SHA for dbf35bb
scripts/setup-git.py
@@ -21,10 +21,12 @@ def setup_git(path: Path, github_user: str, repo_name: str) -> None:
21
"""Set up the provided cookiecutter-robust-python project's git repo."""
22
commands: list[list[str]] = [
23
["git", "init"],
24
- ["git", "branch", "-M", "main"],
+ ["git", "branch", "-m", "master", "main"],
25
+ ["git", "checkout", "main"],
26
["git", "remote", "add", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
27
["git", "remote", "set-url", "origin", f"https://github.com/{github_user}/{repo_name}.git"],
28
["git", "fetch", "origin"],
29
+ ["git", "pull"],
30
["git", "push", "-u", "origin", "main"],
31
["git", "checkout", "-b", "develop", "main"],
32
["git", "push", "-u", "origin", "develop"],
0 commit comments