Copy only add changes in github / git split mode

In addition to my old question , I combined the changes. But still there are some settings in another commit. From this commit, I should get some changes from some specific files (not all file changes).

Since I went to github commit in split mode and tried to copy the contents. but it seems to be copying both additions and deletions for this file, for example. these changes .

  • Is there any tool that will allow me to copy only part of the add-ons from the selected lines?

  • Any command line tool will also be fine.

+6
source share
1 answer

git add -p

can be used to commit some changes (not all) to the file.

+1
source

Source: https://habr.com/ru/post/984170/


All Articles