In version 0.0.11 of gg you can now type gg commit Bla bla and it will try to commit but if that fails, it will ask you one more time, if you want to re-attempt to commit but with --no-verify.

For example:


$ gg commit This is my commit message
❌ file has formatting problems
Commit failed and you did not use --no-verify.
? Try again but with --no-verify? (y/N)

(see screenshots below where color makes these things more intuitive)

This is handy when you know that the .git/hooks/pre-commit might be failing for a reason that is actually not a problem after you've committed.

In a sample repo I have:


$ cat .git/hooks/pre-commit
#!/bin/sh

echo "❌ Rejecting all commits like an angry troll"
exit 1

And when I use gg commit ... this happens:

Prompt

Said y for Yes

Comments

Your email will never ever be published.

Previous:
Faster way to sum an integer series in Python August 28, 2025 Mathematics, Python
Related by category:
Always run biome migrate after upgrading biome August 16, 2025 Bun
Video to screenshots app June 21, 2025 Bun
Parse a CSV file with Bun September 13, 2023 Bun
gg2 - a new CLI for helping me manage git branches August 6, 2025 Bun
Related by keyword:
gg2 - a new CLI for helping me manage git branches August 6, 2025 JavaScript, Bun, macOS
How to unset aliases set by Oh My Zsh June 14, 2018 Linux, macOS
gg - A prototype to rule Git, GitHub and Bugzilla May 6, 2016 Python, Web development
gg - wrapping git-grep August 11, 2009 Linux