git diff during pre-commit hook results in Not a git repository

后端 未结 2 1867
梦毁少年i
梦毁少年i 2021-01-06 09:41

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         


        
2条回答
提交回复
热议问题