sudo yum install git
git init
vim test.php
git add test.php
git commit -m "test.php change1"
git config --global user.name "umdzz"
git config --global user.email "1769360227@qq.com"
git log
git reset --hard d5eedf6
此时本地仓库的提交以及版本控制已经实现 建议大家在学东西的时候一定不要光看,要实际敲出来,毕竟不实际操作,你就不会发现操作中出现的问题,实践是检验真理的唯一标准