diff --git a/hands_on/fetch_merge.py b/hands_on/fetch_merge.py new file mode 100644 index 0000000..8424cbf --- /dev/null +++ b/hands_on/fetch_merge.py @@ -0,0 +1,17 @@ +import os + +from exercise_utils.cli import run_command +from exercise_utils.git import clone_repo_with_git + +__requires_git__ = True +__requires_github__ = False + + +def download(verbose: bool): + clone_repo_with_git( + "https://github.com/git-mastery/samplerepo-finances.git", verbose + ) + os.chdir("samplerepo-finances") + run_command( + ["git", "remote", "set-url", "origin", "https://github.com/se-edu/samplerepo-finances-2.git"], verbose + ) \ No newline at end of file