Lately I find myself doing a lot of git rebase -i <commit_hash>^, replace the first 'pick' with an 'e', make the changes I want to the commit, and git rebase --continue.
I was wondering if I could make an alias to automate this process, but I fail to imagine how exactly. Is it possible to send the todo to a shell script, instead of the editor?
The intended result: running git edit <commit_hash> would do the process described above (except for the git rebase --continue), but without the need of me manually choosing the first commit.