Listener feedback.

This is the Git hook example. Save it as .git /hook/pre-commit in a valid Git repository, and make it executable with chmod +x .git /hook/pre- commit. It gets called any time you tell Git to commit a file, and replaces foo with bar before committing the file.

#!/bin/sh

sed -i 's/foo/bar/g' $(git diff --cached --name-only)

shasum -a256=dd70fa34505149d1156b725951d0f611190f8c8dea1b1cdc7739d348d33da3b0