git init initialization warehouse
git add. Add to warehouse
git commit -m'xxx 'to submit documents to the repository -m' here to write the log '
git status to see if the state of the warehouse git status
tells you the file has been modified, with the git diff
modified content can be viewed.
git log commit log display furthest from the most recent to
git clone address cloning code for others
git push to upload the code address
git pull pull address remote code
Branch command
View branch git branch
Create a branch !!! git branch branch name (created with the progress of the main branch of the same branch, equivalent to a copy)
git checkout to switch branches branch name
git merge branch name branch is merged into the current branch
Version shuttle
git reset --hard version number fallback version information (switching current version number, go back to that version !!!)
git log --oneline
git reflog View all version numbers and rollback operations (that is, to go back !!)
Reproduced in: https: //www.cnblogs.com/mound/p/11034968.html