My Git setup is such that I work in a local "feature" branch and commit changes to this branch as I work. When the code is ready I merge into my local "develop" branch. I then push the changes in my local "develop" branch to the remote "develop" branch.
I made some changes to a file and committed them without realizing I was on my local "develop" branch rather than my "feature" branch. I realized my mistake before I pushed the "develop" branch to the remote "develop" branch, so the changes remain local.
How do I undo this commit to my local "develop" branch? I am using Tortoise Git but I can still use the Git command line if needed.
Note: This is not my first commit to the feature branch or first merge to the develop branch.