git-ensure

v0.1.0
Ensure git status before continuing.

git-ensure

Ensure git status before continuing.

NPM version

image

Usage

npx git-ensure --branch main --no-head --no-behind --clean && <your-commands>

or

npx git-ensure -a && <your-commands>

If any of the conditions fail, a process.exit(1) will be returned and prevent you from continuing the following workflows.

License

MIT

npm i git-ensure

Metadata

  • MIT
  • Whatever
  • Anthony Fu
  • released 2/17/2021

Downloads

Maintainers