Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 715 Bytes

README.md

File metadata and controls

37 lines (28 loc) · 715 Bytes

git-fails

Mock common problematic/tricky git scenarios using real repos.

Install

Create a virtualenv, clone the repo, install the package:

conda create -n gitfails-env python=3.10
pip install -e ."[dev]"

Usage

The top-level command is gitfails.

The first time the CLI is used, call gitfail init to initialize configuration settings.

Set the directory in which repos are created

gitfails config set-working-dir <path/to/working/dir>

List pre-defined scenarios

gitfails sc ls

Construct a scenario

gitfails sc create <name>

Cleanup by removing all scenarios

WARNING: this deletes all repos/files in the working directory.

gitfails sc remove