Further to my old question, I have merged the changes. But still there are some customisations in an another commit. From that commit I have to get some of the changes from some specific files(not all changes of a file).
Since I went to github commit in split mode & tried to copy the content. but it seems it copies  both additions and deletions for that file eg.
.
Is there any tool that will allow me to copy only additions part from selected lines?
Any command line tool also be ok.
The git diff command returns a list of all the changes in all the files between our last commit and our current repository. If you want to retrieve the changes made to a specific file in a repository, you can specify that file as a third parameter.
git add -p is basically "git add partial (or patch)" Patch mode allows you to stage parts of a changed file, instead of the entire file.
git add -p
can be used to commit some changes(not all) with in a file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With