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
Next:
How to count the number of non-blank lines with Bash September 3, 2025 Linux, Bash, macOS
Related by category:
Bun vs. Go for a basic web server benchmark October 24, 2025 Bun
Benchmarking oxlint vs biome December 12, 2025 Bun
Hosting your static web site with Firebase Hosting November 3, 2025 Bun
Testing out vite 8 on SPA: Vite 8 is 5x faster December 6, 2025 Bun
Related by keyword:
gg2 has a web page now January 5, 2026 JavaScript, TypeScript
gg2 is now installable with Homebrew December 8, 2025 Bun, TypeScript
How I end-to-end test my Bun CLI app September 18, 2025 Bun
gg2 - a new CLI for helping me manage git branches August 6, 2025 JavaScript, Bun, macOS