Skip to content
Snippets Groups Projects
Unverified Commit f944e48c authored by Dmitri Naumov's avatar Dmitri Naumov Committed by GitHub
Browse files

Update README.md

parent 88af5524
No related branches found
No related tags found
No related merge requests found
...@@ -31,3 +31,10 @@ git rebase -i COMMIT_ONTO_WHICH_TO_REBASE \ ...@@ -31,3 +31,10 @@ git rebase -i COMMIT_ONTO_WHICH_TO_REBASE \
&& read -r -p 'Hit enter to continue' \ && read -r -p 'Hit enter to continue' \
&& git commit --all --amend --no-edit" && git commit --all --amend --no-edit"
``` ```
## filter-branch solution
To apply `clang-format` to each commit in the range `COMMIT..HEAD` rewriting the history:
```sh
git filter-branch --tree-filter 'git-clang-format $GIT_COMMIT^' -- COMMIT..HEAD
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment