I want to go back after push.

push falls back through the git revert version, but the code does not return to the workspace (the code previously modified by push is gone)

Git
Dec.06,2021

look at the version of your push in low. It's recorded as long as you go to push


View logs git log

commit ff6f405ada374c19232aec3cc8e86a4a213b5a92
Author: XX <X@X.com>
Date:   Tue Nov 20 16:14:22 2018 +0800
message

version fallback: git checkout ff6f405ada374c19232aec3cc8e86a4a213b5a92 you can roll back to this version

The code for

revert does not go to the workspace, but creates a "counter-commit"


The

git reflog command lists all the operating records, including revert, reset, and so on, so your modification records are always there and can be found.

the effect is as follows

clipboard.png

Menu