Git init: Turn the current directory into a repository that git can manage
git add: Tell git to add files to the repository
Git commit-m "": Submit the file to the repository
Git status: View the current state of the warehouse
git diff filename: see what the filename file has changed
git diff HEAD--filename: View the latest version of filename and workspace in the repository that the head points to
git log: Record the time node for each commit commit
git log--pretty=oneline: A row shows the time node for each commit commit
git reset--hard head^: First, Git must know which version of the current version, in Git, the current version with HEAD, that is, the latest commit 3628164 ... 882E1E0 (Note that my submission ID and your affirmation is not the same), the previous version is head^, the last version is head^^, of course, to 100 versions write 100 ^ more easy to count, so written head~100.
Git reflog: Log every command
Git--related commands