diff --git a/hands_on/list_commits.py b/hands_on/list_commits.py new file mode 100644 index 0000000..422213f --- /dev/null +++ b/hands_on/list_commits.py @@ -0,0 +1,27 @@ +import os + +from exercise_utils.file import append_to_file, create_or_update_file +from exercise_utils.git import add, commit, init + +__requires_git__ = True +__requires_github__ = False + + +def download(verbose: bool): + os.makedirs("things") + os.chdir("things") + + init(verbose) + + create_or_update_file( + "fruits.txt", + """ + apples + bananas + cherries + dragon fruits + """ + ) + + add(["fruits.txt"], verbose) + commit("Add fruits.txt", verbose) \ No newline at end of file