Created
April 10, 2019 13:03
-
-
Save roberth/9699dacf4286afb73f60a792e6ce64c3 to your computer and use it in GitHub Desktop.
Rebase with formatting change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout feature-branch | |
git commit -m 'Buffer' --allow-empty | |
git rebase -i <origin/master or similar> | |
# uncomment buffer commit, reorder into | |
# pick Buffer | |
# <pick feature-branch commits> | |
git filter-branch --tree-filter './scripts/format-all' <origin/master or similar>..HEAD | |
# inspect the new Buffer commit and act accordingly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment