Git commonly used commands:
- Create your account and mailbox
git config --global user.name
git config --global user.email
CAT .gitconfig Initialize git
git the initAdd from a local directory to the staging area
git the Add.
Git the Add *Add to a local warehouse from scratch
git commit -m "description text"Modify the file name
git mv a a.txtDelete the file name
git rm -f filenameCheck local directory and the temporary difference between
git diff aCheck local warehouse and the staging of the difference between
git diff --cached aView historical Mirror
git log
git reflog more detailed imageFrom scratch fall back to the local directory
git checkout aFrom local warehouse to fall back to the staging area
git reset HEAD aFall back to a specific image
git reset --hard