I have all sources of project but main.cpp in one directory and main.cpp in another directory. This caused problem with Doxygen to document all files, and I moved all but main() from main.cpp to another file.
Next I commit and push to github.
But my doxygened source are in one branch, I want merge to doxygen branch from other branches and I must revert commit to merge.
My revert must not only make me previous source state, but also delete commit history to do correct merge.