Git has an advanced command called filter branch for making various complex changes to a repo's git history. I intend to use this to fix some accidental mistakes in my repo, but I'm not experienced with it and I want to make sure I don't accidentally do something wrong.
Once I apply my git filter branch command(s), I will end up with a new repository that has the git history altered. I'd like to compare it to the one before filter branch to make sure that exactly those changes I intended have been made.
By doing a simple recursive diff, I can check that the final state of the repo is as expected. But what about the history? If I diff the .git
directory, I suspect it won't be much help. What else can I do to see which commits differ between two repos, across all branches?