No description
Tim Hårek Andreassen 3e458e6076
docs: Improve usage, add reason for existing
Signed-off-by: Tim Hårek Andreassen <tim@harek.dev>
2022-01-19 18:35:18 +01:00
.gitignore Initial commit 2022-01-18 21:38:34 +01:00
init.sh Initial commit 2022-01-18 21:38:34 +01:00
post-receive.example Initial commit 2022-01-18 21:38:34 +01:00
README.md docs: Improve usage, add reason for existing 2022-01-19 18:35:18 +01:00

Simple git-hooks

Features

Easy to use script to create a post-receive git-hook for straight forward deployment. Includes step with submodules.

Usage

# 1. Give excecute permission to the script
chmod +x init.sh

# 2. Run the actual script
./init.sh

# 3. Fill in the prompts.

Now you should have a generated post-receive git-hook called post-receive.generated. You can now move this to where ever you need it and use it as a template.

Why does this exist?

Every time I need to setup a simple post-receive git-hook with (or without) submodules I've had to look it up because it doesn't make sense that I'd have to cd into the path and then define my work-tree, but here we are.

Hopefully someone else can find this useful 😊