- Create a new branch from the branch that you want to keep the file difference in. Let’s call this branch “branch A.”
- Switch to the branch that you want to merge into. Let’s call this branch “branch B.”
- Open a merge request from branch A to branch B.
- In the merge request, click on the “Changes” tab to view the file changes.
- Locate the file that you want to keep the difference in and click on the “+” icon next to it to expand the changes.
- Click on the “Discard changes” button next to the changes that you want to discard. This will remove those changes from the merge request.
- Review the other changes in the merge request and make any necessary adjustments.
- 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.
gitlab web gui merge request how to make two branch keep some file diff
本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=985
上一篇
使用 git reset
发表列表
评论列表
还没有评论,快来说点什么吧~