I have a topic branch (off master
) has that lots of changes. Throughout the history of this topic branch there's been numerous changes to a certain file. How can remove all changes to this file throughout the history of my topic branch?
Additional notes:
- Note that the file existed before the topic branch was created. I don't want to delete the file per se.
- I have a couple of solutions, but so far they seem tedious. I'll post them as separate answers.
- Can
git filter-branch
somehow be used for this? - My topic branch contains around...say...60 commits.