New comment by kawaiiamber on void-packages repository https://github.com/void-linux/void-packages/pull/27787#issuecomment-762714557 Comment: > > Then I wonder how --amend knows which commit to amend to > > It amends the most recent commit. So you can use use it for editing pinta one. > > > maybe I'd have to git rebase -i HEAD~2 > > Yeah for editing `mono-addins` commit you'd need to do `git rebase -i HEAD~2`, it will open your text editor with last 2 commits, and then you replace `pick` with `edit` in front of `mono-addins` commit. So, I think I have an idea. To edit mono-addins: ``` git rebase -i HEAD~2 ``` choose `edit` on mono-addins commit. Do my edits, then `git add srcpkgs/mono-addins`, then, `git commit --amend`, then a force push. Right?