Microsoft/vscode

SCM: Add a options to commit without verify when run git's hooks fail

開放

#244,550 建立於 2025年3月25日

 (2 則留言) (1 個反應) (1 位負責人)TypeScript (39,847 個分叉)batch import
feature-requestgithelp wantedteam-low-hanging

倉庫指標

星標
 (184,936 顆星)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

Background:

When commit fails, sometimes it is because of running hooks. I hope there is a button to ignore the hooks script and continue to commit.

The Git command has a flag to ignore hooks

--no-verify, -n

Why: Because sometimes, we just make some simple modifications. If we want to verify the hooks, we may need to install/reinstall the dependencies, which is a waste of time.

This prompt pops up, for Git noob, he will panic, adding an option is more friendly

貢獻者指南