### Install geminicommit Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Install the geminicommit tool using Go. Ensure Go is installed and the binary is added to your PATH. ```sh go install github.com/tfkhdyt/geminicommit@latest ``` -------------------------------- ### Install geminicommit from AUR Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Install the geminicommit package on Arch Linux using the AUR helper 'yay'. ```sh yay -S geminicommit-bin ``` -------------------------------- ### Enable Copr Repository and Install on Fedora Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Enable the geminicommit Copr repository and install the package on Fedora systems. ```sh sudo dnf copr enable tfkhdyt/geminicommit sudo dnf install geminicommit ``` -------------------------------- ### Set and Get Gemini API Key Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Configure your Gemini API key and then retrieve it to verify the setting. ```sh gmc config set api.key ``` ```sh gmc config get api.key ``` -------------------------------- ### Combine Geminicommit Options Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Examples demonstrating how to combine multiple flags for comprehensive commit generation workflows, such as dry runs with diffs and custom lengths, or production pushes with issue references. ```sh # Comprehensive example: dry run with diff, custom length, and language gmc --dry-run --show-diff --max-length 60 --language spanish # Production workflow: commit and push with issue reference gmc --issue "#123" --push --no-verify # Using custom endpoint with specific model gmc --baseurl https://your-proxy.example.com --model gemini-2.5-pro ``` -------------------------------- ### Set and Get Gemini Model Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Configure the Gemini model to be used and then retrieve the current model setting. ```sh gmc config set api.model gemini-2.5-pro ``` ```sh gmc config get api.model ``` -------------------------------- ### Set and Get Custom API Base URL Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Configure a custom base URL for the Gemini API and retrieve the current setting. ```sh gmc config set api.baseurl https://your-proxy.example.com ``` ```sh gmc config get api.baseurl ``` -------------------------------- ### Geminicommit Configuration File Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Example TOML configuration file for Geminicommit. Set your API key, desired model, and an optional custom base URL. ```toml [api] key = "your-api-key" model = "gemini-2.5-flash" baseurl = "https://your-proxy.example.com" # optional ``` -------------------------------- ### Display Help Information Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Access the full list of available commands and options by running the --help flag. ```sh gmc --help ``` -------------------------------- ### List All Configuration Values Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Display all current configuration settings for geminicommit. ```sh gmc config list ``` -------------------------------- ### Configure NixOS Environment Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Add geminicommit to your system packages in NixOS configuration. ```nix environment.systemPackages = [ pkgs.geminicommit ]; ``` -------------------------------- ### Add Go Binary to Zshrc Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Append the Go binary directory to your Zshrc file to ensure the geminicommit command is accessible. ```sh echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.zshrc source ~/.zshrc ``` -------------------------------- ### Add Go Binary to Bashrc Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Append the Go binary directory to your Bashrc file to ensure the geminicommit command is accessible. ```sh echo 'export PATH="$PATH:$HOME/go/bin"' >> ~/.bashrc source ~/.bashrc ``` -------------------------------- ### Configure Gemini API Key Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Set your Gemini API key for geminicommit. Obtain the key from Google AI Studio. ```sh gmc config set api.key ``` -------------------------------- ### geminicommit Configuration Keys Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Overview of available configuration keys for geminicommit, categorized by section. ```text [api] api.key - Gemini API key api.model - Gemini model name (default: gemini-2.5-flash) api.baseurl - Custom base URL for Gemini API [commit] commit.language - Language for commit messages (default: english) commit.max_length - Maximum length of commit message (default: 72) [behavior] behavior.stage_all - Stage all changes in tracked files (default: false) behavior.auto_select - Let AI select files and generate commit message (default: false) behavior.no_confirm - Skip confirmation prompt (default: false) behavior.quiet - Suppress output (default: false) behavior.push - Push committed changes to remote (default: false) behavior.dry_run - Run without making changes (default: false) behavior.show_diff - Show diff before committing (default: false) behavior.no_verify - Skip git commit-msg hook verification (default: false) ``` -------------------------------- ### Configure Gemini Model and Base URL Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Optionally configure the Gemini model and a custom base URL for the API endpoint. ```sh gmc config set api.model gemini-2.5-pro # optional: change model ``` ```sh gmc config set api.baseurl https://your-proxy # optional: custom endpoint ``` -------------------------------- ### Preview Commit Message Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Use the --dry-run flag to preview the AI-generated commit message without actually making any changes to your repository. ```sh gmc --dry-run ``` -------------------------------- ### Stage Changes and Generate Commit Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Stage your modified files and then use geminicommit to generate and apply a commit message. ```sh git add ``` ```sh gmc ``` -------------------------------- ### Create a Pull Request with Geminicommit Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Use the 'gmc pr' command to automatically draft and open a GitHub pull request with an AI-generated title and body. ```sh gmc pr # opens a ready-for-review PR gmc pr --draft # create as draft gmc pr --dry-run # preview without pushing ``` -------------------------------- ### Stage Changes with Git Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Before generating a commit message, stage your modified files using the git add command. ```sh git add ``` -------------------------------- ### Show Diff Before Committing Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md The --show-diff flag displays the changes that will be included in the commit before it is generated. ```sh gmc --show-diff ``` -------------------------------- ### Clear Custom API Base URL Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Reset the custom API base URL to its default value by setting it to an empty string. ```sh gmc config set api.baseurl "" ``` -------------------------------- ### Use Specific Gemini Model Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Select a specific Gemini model for generating commit messages using the --model flag. ```sh gmc --model gemini-1.5-pro ``` -------------------------------- ### Use Custom API Endpoint Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Configure Geminicommit to use a custom API endpoint for requests with the --baseurl flag. ```sh gmc --baseurl https://your-proxy.example.com ``` -------------------------------- ### Generate Commit Messages in Different Languages Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Specify the desired language for the commit message using the --language flag. ```sh gmc --language spanish gmc --language french ``` -------------------------------- ### Generate AI Commit Message Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Run the gmc command to generate an AI-powered commit message for your staged changes. ```sh gmc ``` -------------------------------- ### Push Committed Changes to Remote Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Automatically push the committed changes to the remote repository after generation using the --push flag. ```sh gmc --push ``` -------------------------------- ### Set Maximum Commit Message Length Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Control the maximum length of the generated commit message using the --max-length flag. The default is 72 characters. ```sh gmc --max-length 50 ``` -------------------------------- ### Reference Specific Issue Numbers Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Link the commit to specific issue tracking numbers using the --issue flag, supporting various formats like GitHub and JIRA. ```sh gmc --issue "#123" gmc --issue "JIRA-456" ``` -------------------------------- ### Skip Git Commit-Msg Hook Verification Source: https://github.com/tfkhdyt/geminicommit/blob/master/README.md Bypass the git commit-msg hook verification process by using the --no-verify flag. ```sh gmc --no-verify ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.