antfu / git-ensure

Ensure git status before continuing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Ensure git status before continuing.

License:MIT License


Languages

Language:TypeScript 98.1%Language:JavaScript 1.9%