meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
git:rewrite [2024/04/04 11:46] niziak |
git:rewrite [2024/04/04 11:47] (current) niziak |
||
---|---|---|---|
Line 8: | Line 8: | ||
====== reformat code in commits ====== | ====== reformat code in commits ====== | ||
+ | |||
+ | ===== git rebase ===== | ||
<code bash> | <code bash> | ||
git rebase main -x 'make clang-reformat && git commit --amend' | git rebase main -x 'make clang-reformat && git commit --amend' | ||
</code> | </code> | ||
+ | |||
+ | ===== git-filter-repo ===== | ||
<code bash> | <code bash> | ||
wget https://raw.githubusercontent.com/newren/git-filter-repo/main/contrib/filter-repo-demos/lint-history | wget https://raw.githubusercontent.com/newren/git-filter-repo/main/contrib/filter-repo-demos/lint-history | ||
chmod +x lint-history | chmod +x lint-history | ||
+ | </code> | ||
+ | Apply patch from https://github.com/newren/git-filter-repo/issues/552 | ||
+ | <code bash> | ||
./lint-history \ | ./lint-history \ | ||
--refs main..feeat-clang2 \ | --refs main..feeat-clang2 \ |