zoukankan      html  css  js  c++  java
  • git操作

    git

    git stash

    stash pop 出现冲突

    `
    git stash pop

    // ...resolve your conflict(s)

    git restore --staged .

    git stash drop
    `

    git stash show stash@{1}:查看改了哪些个文件

    git stash shwo id (这个ID貌似在drop的时候会给出,但是我觉得别的方法应该也能查找到),查看每个文件改动的细节

    git stash apply:只应用,不pop出去

    git stash drop误操作恢复:git stash apply commitId

    git stash push -m:暂存某一个文件

    git branch

    git reflog show --date=iso feature/opt_waybill_batch:查看分支记录与创建时间(最后一行即为初始创建时间)

    1、git stash 可以形成list 集合。通过git stash list 可以看到list下的suoy

    使用git stash apply @{x} ,可以将编号x的缓存释放出来,但是该缓存还存在于list中

    而 git stash apply,会将当前分支的最后一次缓存的内容释放出来,但是刚才的记录还存在list中

    而 git stash pop,也会将当前分支的最后一次缓存的内容释放出来,但是刚才的记录不存在list中

  • 相关阅读:
    开涛spring3(6.5)
    开涛spring3(6.4)
    开涛spring3(6.3)
    开涛spring3(6.2)
    开涛spring3(6.1)
    开涛spring3(5.4)
    开涛spring3(5.3)
    开涛spring3(5.1&5.2)
    开涛spring3(4.4)
    开涛spring3(4.3)
  • 原文地址:https://www.cnblogs.com/Yfling/p/15304648.html
Copyright © 2011-2022 走看看