git undo a commit

1. query submission record. Enter the directory to see someone commit in this directory:

panxi@ww-bj-panxi MINGW64 [path]/Business (feature/v2.3)
$ git log feature/v2.3 --author=[pan] -- ./

The commit the revoke a particular commit time (note handover branch to the branch target):

git revert  94d26b9c189497c6cda72dffb0c9afee6cb8fb96

  

Guess you like

Origin www.cnblogs.com/panpanwelcome/p/11365939.html