Bypass hook before commit during `git revert -continue`

I did git revert (previous return), which caused some merge conflicts. After resolving the conflicts, my pre-hook hook threw some problems with the code sniffer.

Since these code sniffer notifications are fixed elsewhere, I wanted to bypass the pre-commit hook at this point using git revert --continue --no-verify , apparently git revert does not have the --no-verify .

git revert has a subcommand --no-commit , but this does not work in conjunction with --continue .

I ended up renaming the pre-commit file, but out of curiosity. Is there any better way to get around hooks with pre-locking at this point?

+7
git
source share

No one has answered this question yet.

See similar questions:

0
specify which hook to skip git commit --no-verify

or similar:

20142
How do I undo the last local commits in Git?
8423
How do I undo 'git add' before committing?
7159
How do I revert a Git repository to a previous commit?
4540
Move the last commit (s) to a new branch using Git
4165
How can I reset or revert a file to a specific revision?
3206
Squash my last X commits together using git
2886
Remove commit from branch in Git
2416
The message 'src refspec master does not match any' when sending commits to Git
2394
Commit only part of the file in Git
2224
Ignore files that have already been submitted to the Git repository

All Articles