简体   繁体   English

如何自动进行功能分支合并以进行开发?

[英]How to automate feature branch merge on to develop?

Using WebStorm IDE and typical gitflow.使用 WebStorm IDE 和典型的 gitflow。 Day by day I am do same operations after work on feature is finished:在功能完成后,我每天都在做同样的操作:

  1. Push feature branch to remote将功能分支推送到远程
  2. Checkout branch develop结帐分支开发
  3. Pull develop updates from remote从远程拉取开发更新
  4. Merge feature branch to develop合并功能分支进行开发
  5. Stop in case of any merge-conflicts.发生任何合并冲突时停止。 Manually resolve conflicts.手动解决冲突。
  6. Push develop to remote推送开发到远程

Are there any plugins to automate this simple actions (except #5) by one button?是否有任何插件可以通过一个按钮自动执行此简单操作(#5 除外)?

"One button": you would need to record a macro and bind a keyboard shortcut to said macro. “一键式”:您需要录制一个宏并将键盘快捷键绑定到该宏。

But that would not take into account the comment you need to enter when merging, or the potential conflict resolution.但这不会考虑您在合并时需要输入的注释或潜在的冲突解决方案。

You could also write a script, and declaring it as an external tool .您还可以编写脚本,并将其声明为外部工具
In that script, the merge step would stop if there is conflict.在该脚本中,如果发生冲突,合并步骤将停止。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM