When I am trying to run git commit -m 'message here'
I am getting following error.
fatal: cannot exec '.git/hooks/prepare-commit-msg': Permission denied
This issue started after when I created a new partition on my ubuntu and cloned the repo in it.
You'll need to make your file executable, the below code snippet will make the file executable for the owner, the group and the world:
$ chmod +x .git/hooks/prepare-commit-msg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With