diff --git a/hands_on/pull_remote.py b/hands_on/pull_remote.py new file mode 100644 index 0000000..1e2fcaf --- /dev/null +++ b/hands_on/pull_remote.py @@ -0,0 +1,14 @@ +import os + +from exercise_utils.cli import run_command +from exercise_utils.git import add_remote, clone_repo_with_git + +__requires_git__ = True +__requires_github__ = False + + +def download(verbose: bool): + os.makedirs("samplerepo-finances") + clone_repo_with_git("https://github.com/git-mastery/samplerepo-finances.git", verbose) + os.chdir("samplerepo-finances") + add_remote("origin", "https://github.com/git-mastery/samplerepo-finances-2.git", verbose) \ No newline at end of file