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

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!