Usually git commit --fixup references a Git SHA.
git commit --fixup
However, you can use it to reference the most recent commit that matches some text.
git commit --fixup :/foo
[[git]]