Skip to content

Commit

Permalink
setup git
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed May 15, 2024
1 parent 8dce687 commit eb80500
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .submodules/recurse-fork/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,20 @@ def read_submodules() -> t.Dict[str, Submodule]:


def login_to_github():
"""Log into GitHub with the CLI.
"""Log into GitHub with the CLI and setup Git to use the CLI as a credential
helper.
https://cli.github.com/manual/gh_auth_login
https://cli.github.com/manual/gh_auth_setup-git
"""
subprocess.run(
["gh", "auth", "login", "--web"],
check=True,
)
subprocess.run(
["gh", "auth", "setup-git"],
check=True,
)


def fork_repo(name: str, url: str):
Expand Down

0 comments on commit eb80500

Please sign in to comment.