Skip to content

Git auto commit message using deepseek-coder-1.3b-instruct model.

Notifications You must be signed in to change notification settings

RifqiAnshariR/git-auto-commit-message

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📌 Description

Git Auto Commit Message
This is an automation tool to generate Git commit messages based on the conventional rule from staged diff changes. It uses deepseek-coder-1.3b-instruct model.

🚀 How to Run

  1. Clone this repository:
    git clone https://github.com/RifqiAnshari/git-auto-commit.git  
    cd git-auto-commit  
  2. Set up the virtual environment:
    python -m venv venv  
    venv\Scripts\activate  # On Windows  
    # source venv/bin/activate  # On macOS/Linux
  3. Install the required dependencies:
    pip install -r requirements.txt  
  4. Run the script with Python (recommended: Python 3.8+):
    python main.py  

⚙️ PowerShell Configuration

To use the custom Git alias for this script, follow these steps:

  1. Change git_acm.ps1 file with your actual file path.

  2. Enter this command to your terminal (powershell):

    git config --global alias.acm '!powershell -ExecutionPolicy Bypass -File "<absolute path of .ps1 file>"'
  3. This alias will allows you to run the script using:

    git acm  

📄 Usage

  • Automatically fetches staged Git changes and generates a commit message.
  • The generated commit message follows by the conventional commit types defined in the configuration.
  • Once confirmed, the script commits the changes with the generated message.

Made with ❤️!

About

Git auto commit message using deepseek-coder-1.3b-instruct model.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published