Follow

Retroactively run a formatter on past commits by using the`--exec` option during an interactive rebase:

git rebase -i --exec 'mix format’ main
git rebase -i --exec 'prettier --write {**/*,*}.js’ main
git rebase -i --exec 'rubocop -a’ main

jeffkreeftmeijer.com/git-rebas

Sign in to participate in the conversation
Mastodon

The original server operated by the Mastodon gGmbH non-profit