zoukankan      html  css  js  c++  java
  • Git 命令总结

    1.还原某个文件到指定版本

    // 查看filename在git上的历史版本
    git log <filename>
    
    // 回退文件到commit版本
    git checkout <commit version> <filename>
    
    // 编写备注,提交代码
    git commit -m "comments"
    
    // 直接将本地分支提交到远端分支上
    git push origin <local branch>:<remote branch>

    2.git上传打文件失败报http 413错误解决办法

    https://www.jianshu.com/p/5f29afdf8594

    3.当本地代码混乱时,想重新拉取服务器上的代码

    git fetch --all
    git reset --hard origin/master
    git pull
  • 相关阅读:
    反射
    IO流
    集合(下)
    集合(上)
    泛型
    异常
    常用类
    内部类
    将博客搬至CSDN
    DBMS_ERRLOG记录DML错误日志(二)
  • 原文地址:https://www.cnblogs.com/peijyStudy/p/15179909.html
Copyright © 2011-2022 走看看