ensure-git
Why?
You always need to ensure that git working tree is clean and no conficts in your repo before publishing your package.
Install
yarn add ensure-git
Usage
const ensureGit =
API
ensureGit([options])
options
cwd
Type: string
Default: process.cwd()
The path to check.
anyBranch
Type: boolean
Default: undefined
By default if it's not on master
branch the program will throw an error, use this option to disable the behavior.
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
ensure-git © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
egoistian.com · GitHub @egoist · Twitter @rem_rin_rin