Hi guys Is there any ways to precommit with `gt cr...
# how-do-i
l
Hi guys Is there any ways to precommit with
gt create
? I implemented the precommit and it only applies with git CLI, and my teammate uses gt create, and it still by pass Graphite seems has not any ways to deal it
j
Hey Luan!
gt create
does run pre-commit hooks by default - it runs a normal
git commit
under the hood, so installed hooks fire the same as with the git CLI (they're only skipped with
--no-verify
). If it's bypassing for your teammate, most likely the hook isn't installed in their clone (Husky / pre-commit need a per-clone install step), or it's a shell wrapper around
git
rather than a real hook in
.git/hooks/pre-commit
. Have them check
.git/hooks/pre-commit
exists in their clone and try
gt create
again - if it still skips, share the hook setup and we'll dig in!
❤️ 1
l
Thanks for replying!
Let me check it and update soon