Skip to content

Commit 0aa4b9c

Browse files
CLI-9 provide guidance on how to skip hooks
1 parent 041e00f commit 0aa4b9c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

bun.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/commands/integrate/git/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export function showVerificationGuide(hook: GitHookType): void {
176176
: ' 3. Try to push: git push',
177177
' 4. The hook should block the operation and report the secret.',
178178
` 5. Delete the file: ${platform() === 'win32' ? 'del' : 'rm'} ${VERIFY_FILE_NAME}`,
179+
` To skip hooks when needed, run ${hook === 'pre-commit' ? 'git commit' : 'git push'} with the --no-verify flag.`,
179180
].join('\n'),
180181
'Verify the hook works',
181182
);

0 commit comments

Comments
 (0)