Pre-commit hooks can cause many of the commands to fail
- Ngôn ngữ chính
- Go
- Star
- 1.5k
- Fork
- 70
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 7
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start at the gh stack push command and inspect how its command-line flags are defined and passed to Git. Check the other commands that push, then verify that --no-verify allows pushes to bypass pre-commit hooks without changing the normal behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- git, github, go
- Lĩnh vực
- cli, developer-experience
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 65/100