I was manually applying the patch and after I was done I did the following
git add .
git am --resolved
I had overlooked the part that the rej file was also present and was untracked but git add .
added all the files to the staging area as expected and on git am --resolved
I ended up committing my rej file which had the patch diffs .
I did a git reset --soft HEAD^
so I could revert the commit and just commit the file modified by the patch .
But the issue now is that commit message and author would not be extracted from the patch file anymore since I did a git commit.
How do I undo a git resolved so I could remove the rej file and resolve again so the commit messages and author are intact?