ZBLOG

gitlab web gui merge request how to make two branch keep some file diff

  1. Create a new branch from the branch that you want to keep the file difference in. Let’s call this branch “branch A.”
  2. Switch to the branch that you want to merge into. Let’s call this branch “branch B.”
  3. Open a merge request from branch A to branch B.
  4. In the merge request, click on the “Changes” tab to view the file changes.
  5. Locate the file that you want to keep the difference in and click on the “+” icon next to it to expand the changes.
  6. Click on the “Discard changes” button next to the changes that you want to discard. This will remove those changes from the merge request.
  7. Review the other changes in the merge request and make any necessary adjustments.
  8. Once you are satisfied with the merge request, click the “Merge” button to merge the changes from branch A into branch B while keeping the difference in the specified file.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=985

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?