git apply a patch as much as possible when failing
I am moving from one repository to another and need to port some of the changes. The directory structure is mostly the same but the files not all identical.
I can filter files out using –exclude, but what I really would like is that it applies as much as it can and just tell me where there are conflicts / failure.
I am also open to other option for applying the patches or things like that.
2 Solutions collect form web for “git apply a patch as much as possible when failing”
--reject option is probably what you’re looking for. With that, you’ll get classic
.rej files for failing chunks, while all the good chunks will be applied.
You could also try git apply –3way