gitGuard is a versatile, language-agnostic tool designed to enforce commit message standards in various types of projects. Drawing inspiration from commitlint, gitGuard integrates with version control systems like Git to ensure that all commit messages adhere to predefined rules and standards set by convetional commits .
- Download Git-Guard in root of the repo
wget https://github.com/segin-GH/gitGuard/raw/main/dist/gitguard.zip - unzip
gitguard.zipunzip gitguard.zip - rm
gitguard.ziprm gitguard.zip - Install
gitguard./gitguard.py
- Language Agnosticism: Compatible with any programming language, ideal for multi-language projects.
- Easy Integration with Git: Utilizes Git's
commit-msghook for automatic validation of commit messages. - Customizable Rules: Flexible configuration file to define your own commit message rules. (not implemnted)
- Cross-Platform Compatibility: Works seamlessly on Windows, Linux, and macOS. (Only tested in LINUX)
- User-Friendly Feedback: Provides clear, actionable feedback for non-conforming commit messages.
- Simple Setup: Easy to install and configure, fitting into existing workflows effortlessly.
- Clone the
gitGuardrepository:git clone https://github.com/segin-GH/gitGuard.git - Navigate to the
gitGuarddirectory:cd ./gitGuard/src - Run the installation script (requires appropriate permissions):
./gitguard.py
After installation, create a .gitguardrc file in your project's root directory. This file is used to configure your commit message rules. An example configuration:
{
still not defined
}Once gitGuard is installed and configured, it automatically validates commit messages according to the rules specified in your .gitguardrc file. If a commit message does not conform to these rules, gitGuard will reject the commit and provide feedback for necessary corrections.
We welcome contributions to gitGuard! Please read our contributing guidelines in CONTRIBUTING.md for more information on how you can contribute to this project.
