I want to revert code to an older commit in my remote repo's master branch. But the problem is I do not have administrator rights to directly commit/push anything to the master branch. All I can do is create a new branch from master, do my changes there and then merge it with a pull request to master.
I took a new branch from master, reverted the code to where I wanted but when I try to merge it back to master it says no differences found.
I did the below to revert the code in branch and the revert happens exactly how I want
git reset --hard <commit>
git push --force
How can I merge these changes to master? Is there any other way by which I can revert the code in master?