A plurality of current commit, commit wants these combined into one, but wherein one wants to commit ADD2 removed,
Use git revert commit_id add2, where only the revocation of that code is submitted, the code behind add3 submissions still exist and commit record is still preserved, and will generate a new commit
If you want to commit records cleared
Use git rebase commit_id -i this time will enter the vim mode (this place is left open range and close the right)
Back into the three s, pick the first one is on it