commitme
v1.0.2
Published
Simple git commit CLi
Downloads
2
Readme
commitme
Based on this gist by @gustavopch
Installation
You can install this on your package using npm i -D commitme
or run it once using npx commitme
Configuration
Create a .commitrc
on the root of your project to customize the choices.
VSCode Support
Add this to your VSCode config file in order to get autocomplete for the config file:
"files.associations": {
".commitrc": "jsonc"
},
"json.schemas": [
{
"fileMatch": [".commitrc"],
"url": "https://raw.githubusercontent.com/roziscoding/commit-me/main/config-schema.json"
}
]
Options
choices
:- The list of commit types
- Type: Array of inquirer choices for the
list
prompt type Thename
must be the commit type description, and thevalue
must be an emoji
replaceDefaultChoices
:- If true, the default choices will not be used
- Type: boolean
Command line
-a
: Runsgit add --all
before commiting--print
: Prints the commit message, instead of caling git (will ignore the-a
flag)
Contributor
- @roziscoding: Creator of this package
- @gustavopch: Creator of the gist that allowed this package to exist