I\'m trying to build a pre-commit script in git. In that script I plan on running tasks if a certain folder has changed. To test, in my script I have
git d
unset GIT_DIR cleared it up. I'm disappointed that --git-dir did not.
unset GIT_DIR
--git-dir