-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: simple-git-hooks
的钩子很容易导致合并分支失败
#500
Comments
用git rebase去解决 |
这方案不太行,已经分叉开始项目了, |
从指定commit 创建分支git branch 基本用不上git merge |
就算是用git merge,也能后编辑commit信息 |
SoybeanAdmin 的example分支每次更新版本都是从main分支merge,有冲突时就解决冲突,和提交信息也没关系 |
这种是项目内的分支,当然没问题很合理,如果我提 PR 也会这样操作的,推送前看到看 master 是否有更改,有更改就 rebase 再后测试没问题在推送。 但我提到的是 fork 后的项目,同时保留上游追踪。
我还是提意,使用这种方案:https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/is-ignored/src/defaults.ts#L17-L28 [
test(
/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m
),
test(/^(R|r)evert (.*)/),
test(/^(fixup|squash)!/),
isSemver,
test(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),
test(/^Merge remote-tracking branch(\s*)(.*)/),
test(/^Automatic merge(.*)/),
test(/^Auto-merged (.*?) into (.*)/),
]; |
正好需要对commit的信息支持中文,这几个可以一并加进去 |
你提个issues, |
软件版本
1.2.5
运行环境
Windows (64)
运行架构
x86
重现步骤
通过
ide
操作分支合并上游提交并解决冲突。当前对启用的钩子做了一定调整
git log
MERGE_MSG
期望的结果是什么?
确保钩子不会对 Git 各种操作
merge
、rebase
造成负面影响,手动恢复起来挺麻烦的。实际的结果是什么?
合并被中断,得手动恢复
日志记录(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: