Is there a way to keep two branches from merging in git

前端 未结 2 773
傲寒
傲寒 2021-01-05 10:56

I would like to be able to keep two separate branches in a git repo that cannot accidentally be merged even though the branches may contain similar content.

Is there

2条回答
  •  北海茫月
    2021-01-05 11:30

    Note that a git merge with auto-commit would not call the pre-commit hook. See "git merge auto-commit doesn't fire pre-commit hook"

    Merge calls commit_tree directly, so the standard commit hooks are bypassed.

    A Patch is in progress.

提交回复
热议问题