zoukankan      html  css  js  c++  java
  • Git常用命令

    查看远程仓库地址

    git remote -v;

    修改远程仓库地址

    git remote set-url origin newurl;

    git取消暂存区文件

    git reset filename;#取消暂存指定文件,使文件撤回到未暂存区
    git reset head;#取消所有暂存区文件

    git撤销文件修改

    git checkout filename; #撤销某个文件的修改
    git checkout -- .; #撤销所有文件的修改

    git撤销上次的提交

    git reset --soft commit-hash值的父hash值 ;#撤销上次提交,并且保留修改的代码到暂存区
    git reset --hard commit-hash值;#回到指定的某次提交
  • 相关阅读:
    Excel教程(5)
    Excel教程(4)
    Excel教程(3)
    Excel教程(2)
    如何在Excel中少犯二(I)
    for zip
    temp
    study
    eclipse
    shell
  • 原文地址:https://www.cnblogs.com/itfeng813/p/14649436.html
Copyright © 2011-2022 走看看