I am working on a React project that uses gh-pages
to deploy a website. I accidentally merged my master
branch with my gh-pages
branch and brought all of the changes that were on master
to gh-pages
. In total, it added 24 commits to my gh-pages
branch that weren't there before.
I was wondering if there was a way to revert these changes and to take my gh-pages
branch back to the 6 commits that were there to begin with?
If that is possible, is there a way to remove those 24 extra commits on the gh-pages
branch from GitHub?
I have looked at resources related to git reset --hard
and git rebase
and I am unsure if they would solve my problem. I don't want to destroy the git structure of this project more than it already is.