Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.72 KB

README.md

File metadata and controls

46 lines (30 loc) · 1.72 KB

git-hooks

Contributors Forks Stargazers Issues MIT License


Introduction

This repo contains a collection of git hooks that can be used to automate certain tasks when working with git.

Setup

Remove the file extension from the chosen hook and copy it to the .git/hooks directory of your project.

Ensure the file is executable by running chmod +x .git/hooks/<hook-name>.

Scripts

prepare-commit-msg

This script will prepend the branch name to the commit message.

pre-push

This script will prevent pulling or merging the develop branch into either the main or master branches.


License

This repo is licensed under an MIT license. A copy of the license is also provided.