This project is a collection of shell scripts that leverage the Gemini CLI to automate common developer tasks.
There are two ways to install these helper scripts.
If you have Node.js and npm installed, you can install the scripts globally from the root of the project directory:
npm install -g .This will make the gemit command available in your system's path.
For bash users who prefer not to install a global npm package, you can use the provided bash script to create an alias.
./install-bash.shThis will:
- Create an alias for the
gemitscript in thescriptsdirectory. - Add the alias to your
~/.bash_aliasesfile. - Ensure
~/.bash_aliasesis sourced by your~/.bashrc.
After installation, you'll need to restart your shell or source your .bashrc file for the changes to take effect:
source ~/.bashrcThe gemit script automates the process of generating a commit message for your staged changes using the Gemini CLI.
Usage:
gemit [options]The script will use the staged diff to generate a concise commit message and then create the commit.
Options:
| Option | Description |
|---|---|
-h, --help |
Show the help message and exit. |
-a, --all |
Stage all tracked files before committing. |
-s, --submodule |
If in a submodule, commit the submodule changes in the parent repository as well. |
-r, --release |
Run 'npm run release' after committing. |
Examples:
-
Generate a commit message for currently staged files:
git add . gemit -
Stage all files and generate a commit message:
gemit -a
-
Stage all files and commit submodule changes in the parent repository:
gemit -a -s
-
Stage all files, generate a commit message, and run the release script:
gemit -a -r