I am a newbie in Git. I did a mistake and now need to undo the same mistake. I cloned from a remote repository and that brought down fileA and fileB in my working directory. I made a commit and in that commit, I modified fileA and fileB from what is on the server. (These changes shouldn't go to production).
I also pushed the commit to a remote branch of the origin server.
Now I need to do two things:
- In my next commit, I need to bring those two files to their original state.
- Push that commit again to the remote branch of the origin.
How do I do this? Any help will be highly appreciated.