Git, github
# Create a git Repository
Git init
# Add a file to the git Repository
Git add filename
# Submit the file to the git Repository
Git commit-m'description'
# View git status
Git status
# View the modified content of the file
Git diff filename
# Viewing submission history
Git log [-- pretty = oneline]
# Version rollback. HEAD: indicates the current version; HEAD ^: indicates the previous version.
Git reset -- hard version number (only the first few digits can be written)
# Every Command record
Git reflog
# View the differences between the latest version in the workspace and version Library
Git diff HEAD -- filename
# Discard the workspace changes (the file is returned to the status of the last git commit or git add operation)
Git checkout -- filename
# Undo the modification after git add and put it back to the Workspace
Git reset HEAD filename
# Deleting an object
Git rm filename
Git commit filename
# If the file is deleted incorrectly, you can easily restore the accidentally deleted file to the latest version because it is still available in the version library.
Git checkout -- filename