1.0.5 • Published 3 years ago
getcommit v1.0.5
Getcommit
Getcommit is a package for generating commit messages with AI.
Install
Install the package globally using npm.
sudo npm install -g getcommitUsage
For generating the commits use the command:
generate
Locate your bash on the git proyect and run the next command to get the commit message for all the unstaged changes:
getcommit generate .You can also generate commit messages for specific files using its names:
getcommit generate myfile.jsIf your changes are already staged (you did git add . previusly) you'll need to include the --staged parameter.
getcommit generate myfile.js --stagedgetcommit generate . --stagedControl the length and add keywords to the generation
If you want more control over the generated commit messages you can use the -l (length: number) and -w (keywords: separated by , and between '') parameters.
getcommit generate . -l 100 -w '[EC165], refactor, improve, function'Enjoy. :)