In a project I'm currently working on, I have a file with roughly the following history:
- It started as a copy of a file from a different project
- Some changes where made
- Somewhere in between the majority of the file was deemed unnecessary and deleted
- After that, existing lines where modified and additionally new lines where created either by copying from the original file or as completely new lines that where not in the original file.
Now, I regret having deleted the vast majority of the file and I want to revert back to the initial file (some 100 commits ago) but with all modifications except the deletions since then.
In other words: Every line that exists in the latest commit should be taken from that, every line that's not in there should be taken from the first commit.
How can I achieve that?