# git_ui: Add option to commit with \-\-no-verify \(\#61529\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b2a4fb47b1d489f16e8b2f58ed746a9ad883c517)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b2a4fb47b1d489f16e8b2f58ed746a9ad883c517

Requested commit: b2a4fb47b1d489f16e8b2f58ed746a9ad883c517

Commit: b2a4fb47b1d489f16e8b2f58ed746a9ad883c517

Tree: 666c71ca16b907dd46082b40aa0020c4212bd917

Author: Smit Barmase

Committer: GitHub

## Message

```
git_ui: Add option to commit with --no-verify (#61529)

Follow-up to #61185, which moved hook execution from Zed into `git
commit` itself. There was previously no way to skip hooks from the UI;
#59846 and #56318 attempted to add one on top of the old behavior. This
PR adds support on top of the new implementation.

Adds a “Skip Hooks” toggle to the commit menus in the Git panel and
commit modal, with a corresponding command-palette action. When enabled,
the next commit runs with `git commit --no-verify`, skipping pre-commit
and commit-msg hooks. The toggle clears after a successful commit or
when switching repositories, but remains enabled when a commit fails so
it can be retried.

Release Notes:

- Added a “Skip Hooks” commit option that skips pre-commit and
commit-msg hooks.
```

## Parents

- [e1380d58bbe144c4838861848856a23eacd0e67f](https://git.cafe/gitcafe/zed/commit/e1380d58bbe144c4838861848856a23eacd0e67f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b2a4fb47b1d489f16e8b2f58ed746a9ad883c517?format=markdown)
