Codegate is a simple and easy-to-use pre-commit tool that helps automate checks before committing your code.
- Download the tool.
- Move the downloaded file to /usr/local/bin/ and rename it to codegate.
- Run the following command to initialize Codegate in your project:
codegate --mode init
-
After running the command, a .codegate folder will be created in your project, containing a pre-commit file. You can edit this file to configure the checks you want to run before each commit.
-
From now on, before every commit, Git will automatically run the commands specified in the pre-commit file.