Skip to content

Instantly share code, notes, and snippets.

View Poolshark's full-sized avatar

Flo Ragossnig Poolshark

View GitHub Profile
@Poolshark
Poolshark / post-checkout.sh
Last active May 26, 2022 07:18
post-checkout Git hook
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# ---------------------------
# POST-CHECKOUT PARAMS
# ---------------------------
# Takes 3 params:
# 1: prev HEAD
# 2: new HEAD
# 3: branch change indicator (checkout file = 0; changing branches = 1)