How can I selectively merge or pick changes from another branch in Git?

前端 未结 25 1570
慢半拍i
慢半拍i 2020-11-22 02:53

I\'m using Git on a new project that has two parallel -- but currently experimental -- development branches:

  • master: import of existing codebase pl
25条回答
  •  梦如初夏
    2020-11-22 03:13

    For me, git reset --soft branch is the easiest way to selectively pick the changes from another branch, since, this command puts in my working tree, all the diff changes, and I can easily pick or revert which one I need.

    In this way, I have full control over the committed files.

提交回复
热议问题