zoukankan      html  css  js  c++  java
  • Git (提交版本及版本回退)

    yum   install  git         安装Git

    git  init         初始化版本库

    git  add    文件名             将文件添加到git中

    git  commit    -m   “文件修改信息”             提交文件

    第一次需要执行

     git config --global user.email "1853784805@qq.com"            邮箱

    git config --global user.name "wbf"                                          名字

    git  difs   文件名           对比文件修改前与文件修改后

    git   status               查看提交文件的变更内容

    git  log                   查看日志

    git  reset   --hard  HEAD^           退回到上一个版本     HEAD^^    上上个版本              HEAD~100     往上100个版本

    git  reset  --hard   版本号            回到任意版本

    gif  reflog                查看每次提交版本的信息

            

  • 相关阅读:
    Thymeleaf+Spring使用自己的工具类
    bootstrap 响应式布局
    bootstrap 流布局
    bootstrap 布局
    bootstrap 新建网页
    quick 定时更新函数
    acm hdoj 1157
    acm hdoj 今年暑假不ac
    quick removeTileMaptile
    quick schedule 的添加和移除
  • 原文地址:https://www.cnblogs.com/wbf980728/p/13852687.html
Copyright © 2011-2022 走看看