I have been working on a Git project that will soon be shared with other developers. There is a section of my project that has information I'm not allowed to share.
If my project history looks like A -> B -> C -> D -> E -> F, and the information contained in commits C and D is private, is it possible to modify my project history so that it looks like A -> B -> E' -> F' (where E' and F' are E and F without the confidential information) before sharing?
It is my understanding that if I perform a manual merge between F and B to create F', then the final commit will be what I want but it won't preserve the project history. I think it will look like A -> B -> F' instead of A -> B -> E' -> F'.