Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions hands_on/fetch_merge.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import os

from exercise_utils.cli import run_command
from exercise_utils.gitmastery import create_start_tag

__requires_git__ = True
__requires_github__ = False


def download(verbose: bool):
os.makedirs("samplerepo-finances")
run_command(["git", "clone", "https://github.com/git-mastery/samplerepo-finances.git"], verbose)
os.chdir("samplerepo-finances")
run_command(["git", "remote", "set-url", "origin", "https://github.com/git-mastery/samplerepo-finances-2.git"], verbose)