Skip to content
Discussion options

You must be logged in to vote

make sure you're on the branch you want to revert

git checkout

revert the merge commit (replace with the actual hash found github)

git revert -m 1 # -m 1 tells Git to keep the mainline (usually the branch you merged into

push the change

git push origin

Replies: 1 comment

Comment options

swith005
May 21, 2025
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by swith005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant