Skip to content

jordandarlington/git-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages