• GIT 学习二 (查看日志和回退)


    git log(--pretty=oneline)

        查看日志, (--pretty=oneline) 简化信息.

    git reset --hard head

        版本回退  head 表示当前版本

    git reflog  

        显示所有日志 和 git log 不同 (git log 只能看到当前版本之前的log) 

    git reset --hard commit id

        通过 git reflog 可以查到所有提交的 commit id 然后可以通过 git reset --hard commit id 回退到此次提交的版本

  • 相关阅读:
    111
    实验 12 综合练习二
    实验 11结构体
    作业 5 指针应用1
    实验 10 指针2
    实验9 指针1
    实验8 数组2
    实验7
    321
    实验9-2
  • 原文地址:https://www.cnblogs.com/shouwangzhe-/p/4605702.html
Copyright © 2020-2023  润新知