I have made some changes to a file which has been committed a few times as part of a group of files, but now want to reset/revert the changes on it back to a previous versio
You can do it in 4 steps:
What you need to type in your terminal:
git revert git reset HEAD~1git add && git commit -m 'reverting file'git checkout .good luck