def do_git_reset_hard(context): """Perform a hard git reset""" with util.chdir(context.root_project_dir): check_run("git reset --hard HEAD")
def delete_notebooks_dir(context): """Delete notebooks directory in project""" with util.chdir(context.root_project_dir): shutil.rmtree("notebooks/")
def add_proj_dir_to_staging(context): """Add root project dir to staging""" with util.chdir(context.root_project_dir): check_run("git add .")
def commit_changes_to_git(context): """Commit changes to git""" with util.chdir(context.root_project_dir): check_run("git commit -m 'Change {time}'".format(time=time()))
def init_git_repo(context): """Init git repo""" with util.chdir(context.root_project_dir): check_run("git init") check_run("git config user.name 'Tester'") check_run("git config user.email '*****@*****.**'")