This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: xezrunner (github.com/xezrunner) | |
# Inspired by Jonathan Blow's nocheckin setup with SVN (twitch.tv/j_blow) (youtube.com/@jblow888) | |
# Credit: DustinGadal on r/Jai: reddit.com/r/Jai/comments/jp0vjy/nocheckin_behavior_in_gitsourcetree/gbfhzd1 | |
# Required programs/utilities: git, grep, xargs, wc | |
# To install, move and rename to <repo>/.git/hooks/pre-commit (or merge) | |
# The file name has to be "pre-commit" for Git to use it. Compatible with Github Desktop GUI. |