Skip to content

antfu/git-ensure

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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