
I want to cancel the blue commit
Is there a effective way to do it???
Thanks!
I think that you have a couple options for getting rid of that commit (and some are mentioned in the comments above):
git revert <commit_id> - this will show in the git history that you specifically removed the codegit reset --hard <commit_id_before_your_commit> then cherry pick the commits you want to keep git cherry-pick <commit_id_to_keep>x2 and finally force push to the origingit rebase -i origin/wix - interactive rebase the branch, and SKIP that commit when you get to itThe latter two options will not show any trace of that commit in your branch history, where as the first option will show that the commit existed but you opted to remove it.