How can I clang-format my WHOLE git history?
问题 I have now finished a small library of mine. When I started using it, I didn't know about clang-format. Now I would like to format the whole repository with it. I know that this breaks other peoples repositories as the commit hashes changes. However, as no one is using my library yet, this is fine with me. Thus, what do I have to do to run clang-format for every commit in my history? 回答1: Git comes with a git filter-branch command that is a tool that helps with this kind of task. Note that