devel이라는 개발계 브랜치에서 A라는 브랜치에 작업을 하다 커밋, 푸시, devel에 머지시켰다.
이후 A 를 devel 브랜치에 merge시킨 것을 취소하고 싶으면 아래 순서대로 진행한다.
가끔 Revoke 시킬 일이 있는데, 순서를 헷갈리지 않기 위해서 기록해둔다.
To revoke a branch merge into the "devel" branch on GitHub, you will need to use the command line to create a new branch that reverts the changes made by the merge commit. Here are the steps:
- Checkout the "devel" branch: git checkout devel
- Create a new branch to revert the merge: git branch revert-merge
- Checkout the new branch: git checkout revert-merge
- Revert the merge commit: git revert -m 1 <merge_commit_hash>
- Push the new branch to GitHub: git push -u origin revert-merge
- Open a pull request on GitHub to merge the "revert-merge" branch into the "devel" branch
Note: <merge_commit_hash> is the hash of the merge commit that you want to revert.