首先我们修改版本库下的 readme.txt 增加一行
learn how to control the version.
使用 git diff readme.txt 命令查看工作区与提交版本的不同
使用 git add ,git commit 提交修改,再使用 git log 命令显示提交日志
使用 git reset --hard 回退到之前的版本,可以看到 readme.txt 中之前添加的 learn how to control the version. 不存在了
首先我们修改版本库下的 readme.txt 增加一行
learn how to control the version.
使用 git diff readme.txt 命令查看工作区与提交版本的不同
使用 git add ,git commit 提交修改,再使用 git log 命令显示提交日志
使用 git reset --hard 回退到之前的版本,可以看到 readme.txt 中之前添加的 learn how to control the version. 不存在了