JonChesterfield wrote: You might like "git-clang-format HEAD~1 && git commit --amend --no-edit". It'll format the changes you've made and update the existing commit to include them. https://github.com/llvm/llvm-project/pull/187855