What if only the submission of one commit in the middle is revoked?

commit A-> commitB-> commit C-> commit D
now I want to undo the changes to commitB or submit them backwards.

Git
Feb.27,2021

two cases:
1, not yet push to remote
at this point, you can first git reset-- HEAD CommitA
and then git cherry-pick CommitC CommitD
PS:. It is best to ID copy the CommitC CommitD first to facilitate operation.

2, has been push to remote
can only be processed through git revert CommitB at this time.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31b14-2bdb0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31b14-2bdb0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?