# Git Pre-commit hook not firing on commit

**URL:** <https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033>\
**Category:** Bug Reports\
**Created:** [August 11, 2026, 3:14pm UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033 "2026-08-11T15:14:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catbot\_Tsumi](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/catbot_tsumi/32/117247_2.png) [@Catbot\_Tsumi](https://forum.cursor.com/u/Catbot_Tsumi)\
**Post date:** [August 11, 2026, 3:14pm UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/1 "2026-08-11T15:14:52Z")

</div>

Ive been having issues where the pre commit git hook doesnt work anymore. i have a simple thing to bump some version numbers but it doesnt run automatically anymore.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [August 13, 2026, 10:49am UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/5 "2026-08-13T10:49:24Z")

</div>

Hey, thanks for the report. This looks like a known issue in 3.15.6. Commits made via the Source Control panel silently skip all git hooks like pre-commit, commit-msg, pre-push, and Husky. That shouldn’t happen, and it’s not something in your setup.

Just to double check, are you committing via the Source Control panel in Cursor? If yes, here are two workarounds until an update ships:

- Commit from the integrated terminal using `git commit`. Hooks run normally there.
- Or roll back to 3.14.27. Hooks work there too, confirmed by other users.

We’re tracking this, but there’s no exact timeline yet. There’s a thread you can follow for updates: [Git hooks silently skipped for all Source Control operations since 3.15.6 — git extension forces `core.hooksPath=/dev/null`](https://forum.cursor.com/t/167719)

Let me know if you’re not committing from the panel and you’re doing it another way, then we’ll take a separate look.

---

<div class="post-metadata">

**Author:** ![archon810](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/archon810/32/78074_2.png) [@archon810](https://forum.cursor.com/u/archon810)\
**Post date:** [August 24, 2026, 1:40am UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/7 "2026-08-24T01:40:08Z")

</div>

Just ran into this bug today after setting up pre-commit hooks for the first time and committing bad code to test through Cursor’s UI. I’m on version 3.16.17.

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [August 24, 2026, 8:34am UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/8 "2026-08-24T08:34:33Z")

</div>

Hey @archon810, thanks for the report. This is the same issue we’re already tracking. Commits made via the Source Control panel silently skip git hooks like pre-commit, commit-msg, pre-push, and Husky. That shouldn’t happen, and it’s not related to your setup. It’s helpful to know it also reproduces on 3.16.17, I’ve passed it to the team.

For now, the workaround is to commit from the integrated terminal using `git commit`. Hooks run normally there.

You can follow updates in this thread: [Git hooks silently skipped for all Source Control operations since 3.15.6 — git extension forces `core.hooksPath=/dev/null`](https://forum.cursor.com/t/167719). We’ll post there when we have news. No exact timeline yet.

---

<div class="post-metadata">

**Author:** ![Karthik\_Pandiyarajan](https://avatars.discourse-cdn.com/v4/letter/k/71e660/32.png) [@Karthik\_Pandiyarajan](https://forum.cursor.com/u/Karthik_Pandiyarajan)\
**Post date:** [August 26, 2026, 5:24am UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/9 "2026-08-26T05:24:45Z")

</div>

@archon810 roll back to 3.14.27 version it is working fine

---

<div class="post-metadata">

**Author:** ![Rodrigo\_Spesia](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Rodrigo\_Spesia](https://forum.cursor.com/u/Rodrigo_Spesia)\
**Post date:** [August 28, 2026, 5:56am UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/10 "2026-08-28T05:56:46Z")

</div>

Updated to 3.17, still havving the same issue

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [September 22, 2026, 7:45am UTC](https://forum.cursor.com/t/git-pre-commit-hook-not-firing-on-commit/168033/12 "2026-09-22T07:45:35Z")

</div>

> [@Git hooks silently skipped for all Source Control operations since 3.15.6 — git extension forces \`core.hooksPath=/dev/null\`](https://forum.cursor.com/t/git-hooks-silently-skipped-for-all-source-control-operations-since-3-15-6-git-extension-forces-core-hookspath-dev-null/167719/81):
>
> Hey everyone, Thanks for the reports and for your patience on this one. A fix for Source Control commits skipping git hooks is coming in Cursor 3.22 (the next minor release of Cursor). Once you’re on that version, pre-commit, commit-msg, pre-push, and Husky hooks will run again for commits, pushes, checkouts, and other actions started from the Source Control view, the same way they do from the terminal. Until then, committing from the integrated terminal still runs your hooks as expected. Pl…
