1. git common commands
1. Initialize the local library
git init
2. Check status
git status
3. Add a staging area
git add 文件名
4. Delete the temporary storage area
git rm --cached 文件名
5. Submit the local library
git commit -m "提交说明" 文件名
6. View logs
git relog 查看精简日志
git log 查看详细日志
7. Version traversal
git reset --hard 版本号
2. Branch operation
1. View branch
git branch -v
2. Add branch
git branch 分支名
3. Switch branches
git checkout 分支名
4. Merge branches
git merge 分支名
When the code conflicts, open the file
Three. github operation
1. Create a link alias
git remote add 别名 链接
2. push to push the local library
git push 别名 分支
3. Pull the code
git pull 别名 分支