How to manually run a git pre-commit hook, without attempting a commit?

前端 未结 3 1583
情书的邮戳
情书的邮戳 2021-02-01 12:01

I just want to be able to run it to see if the code in my working tree passes it, without actually attempting a commit.

3条回答
  •  自闭症患者
    2021-02-01 12:42

    Just run git commit. You don't have to add anything before doing this, hence in the end you get the message no changes added to commit.

提交回复
热议问题