Write in front:
If you can't imagine a good title, write a good article.
This article is mainly about some of the common commands and problems encountered in using Git, as well as manuals and answers!
The title ordinal of this article does not make any sense when git is not playing well.
1.git version fallback:
A. Local version fallback:
1.>git Log
Review the submitted log for the version number.
2.>git Reset Head--hard 3m45i4
Fallback to the desired version, version number [3m45i4 ...] You don't have to finish it, Git will find it yourself.
B. Remote version fallback:
Each remote operation is inseparable from the local. So remote fallback is the version of the local fallback after push up.
>git Push Origin Master:master
C. Get the latest version before fallback (equivalent to an open version)
Similarly, direct reset:
>git Reset Head--hard eb623c
Note: This version number can be seen in the results of the previous git log command, if, unfortunately, the serial port is turned off, the version number is not visible. OK, find your own history or log.
2. Not to be continued ...
Git uses JuJu