Pre-commit hooks can cause many of the commands to fail
未關閉
feature request
topic: cli - push
- 主要語言
- Go
- 星號
- 1.5k
- 分支
- 70
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 7
描述
It would be nice if the commands that push supported a `--no-verify` flag. I've had to implement a local function like this to get around the pre-commit hooks that sometimes fail during push after a rebase.
```shell
# git stack --push without running hooks.
gs-push-quiet() {
git config core.hooksPath /dev/null
gh stack push
git config --unset core.hooksPath
}
```
Not all my colleagues use pre-commit, so sometimes a random change somewhere in the mono repo will block a push without `--no-verify`, even though all my commits are clean.
貢獻指南
研究方向
從 gh stack push 命令開始,檢查其命令列旗標是如何定義並傳遞給 Git 的。檢查其他執行 push 的命令,然後驗證 --no-verify 允許 push 繞過 pre-commit hooks,同時不改變正常行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- git, github, go
- 領域
- cli, developer-experience
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 65/100