Ideal way to revert a PR from main branch #130913
Unanswered
Manikanta532
asked this question in
Pull Requests
Replies: 1 comment 5 replies
-
Git command used to reset the current branch to a previous commit: Command to view the commit history (with the commit hash) of the current branch: |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PR Revert issue
Question
Body
We had a PR from feature to main branch. which we want to revert it. used the option of revert button on GitHub, it created new revert branch and raised the PR to main. By doing this we were able to revert the code whatever that is added to main branch but, still commits are present in the main history.
Issue here is when I try to merge develop to main should have some x file changes, now not showing them at all.
Should we revert all the commit from main branch history or is there any better way to handle this?
I saw the approach of revert the revert commit, which I did not get exactly how it's going to remove commits.
Beta Was this translation helpful? Give feedback.
All reactions