I replaced 3 files in a directory in the master branch. For instance, I replaced a.txt, b.txt and c.txt with same name but new content. Then I added in the stagging area, commited and pushed to the central repo.
Whole operation was performed by Root user, later I realized that I had to perform the operation from puppet user.
The steps I took were reverting back to the second last commit. After reverting, I saw the replaced files were still intact with new content in the directory. Furthermore, the revert operation in "git status" was also marked as root user too.
How can I undo the changes locally and remotely and then perform with puppet user.