Run a precommit hook in Git. Is there a way to verify that the script is running?
问题 I wanted to run a Git and as suggested by the blogs, I used $git init to initialize the repository and then a .git folder is created where the hooks are present in the hooks directory. Then as suggested by the script I renamed pre-commit.sample as pre-commit it didn't work so I renamed it as pre-commit.sh it still didn't seem to be running in the background or I atleast didn't know it did. So, in order to have a clue as to whether it was running in the background I used an echo statement but