I have accidentally merged
pull request into master
branch from my feature branch, which i should not have. I am using gogs
. I cannot use revert button as there is not any functionality available. How can i revert back the master to the position before my pull request so that master branch will be clean again.
Also master branch is protected and commits should be pushed only through pull request. So git push -f
is not working for me.
I have read other questions but they were about a specific incidents. I am not sure how can i achieve this.