I have this bad habbit where if I see unformatted code, I format it.
This is bad because the benefit of the change is not directly related to the user story (akak ticket) I'm working on.
So I am currently on this branch:
feature/add-ability-to-manage-notes
I have made many changes and made many commits. On of these files had no relevant change other than my OCD with regards to the formatting.
The changes and commits are all local to my machine and have not been pushed to remote origin
I want to undo that one file to make it match the develop
branch, so that when I create my PR, it doesn't get listed among the changed things. This way, it will be easier for my colleagues when they review my PR in GitLab.
How do achive this in using Git command line?