I've got a branch I want to merge into another via a squash commit. In some cases these new files have leading or trailing spaces that are not needed. If I remove the extra spaces during the squash merge how do I push those changes into the original branch without having to manually do the fixes again?
Currently I am applying the changes twice. Once when I squash merge into a testing branch. And again when I squash merge the original branch into master.
My workflow
git co staging
git merge origin/feature --squash
git push origin staging
Do my checking, and then follow up with
git co master
git merge origin/feature --squash
git push origin master