jQuery is the best and most widely used way to modify a node tree. Code itself is a node tree (AST), so it just makes sense to use jQuery for codemod. Try it out with this online editor.
Splitting and stacking pull requests is great practice for clean code review, the git commands are too complicated to be worth it.
Use this tool and and be done in a few clicks without having to leave the browser.