I cloned a project repository and did some commits to it. The commits were pretty dirty; I messed up tabs-spaces and committed some trash along the way. So before making a pull request I want to make things tidy. I think the best way would be making a new branch at origin/master
and then apply commits from my old branch one by one to a working copy and doing clean commits to a new branch.
So how to apply commit from other branch to a working copy? Is it the best way to do it? Such task seems pretty common and maybe there is already an established workflow and tools for such things?