是否有可用的挂钩脚本可以在分支开关上进行快进合并?我有一个存储库,其中有多个分支,我必须在它们上处理几个。在明显合并当前签出分支的 git pull 之后,我经常会在切换分支时看到以下消息:
> git checkout master
Switched to branch 'master'
Your branch is behind 'origin/master' by 10 commits, and can be fast-forwarded.
>
我希望 git 在分支更改时自动为我执行快进合并。我不希望它无条件地合并,但只有在可以快进的情况下。
提前感谢您的建议,
朗达