MajestySolor
V2EX  ›  问与答

求救,误操作了 ‘git rm -r --cached .’ 删除本地缓存,有办法撤销这个操作么~~

  •  
  •   MajestySolor · Dec 23, 2016 · 3401 views
    This topic created in 3471 days ago, the information mentioned may be changed or developed.
    本来想删除单个文件缓存的,手残看错了,求挽救~~
    4 replies    2021-02-18 22:40:23 +08:00
    jayzjj000
        1
    jayzjj000  
       Dec 23, 2016
    恢复硬盘= =
    sonack
        2
    sonack  
       Dec 23, 2016
    git reset HEAD?
    SoloCompany
        3
    SoloCompany  
       Dec 23, 2016
    这命令又不会删除任何实质性东西的,仅仅是修改了 index
    reset 不就回来了吗
    northess
        4
    northess  
       Feb 18, 2021
    git add .
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   899 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 20:40 · PVG 04:40 · LAX 13:40 · JFK 16:40
    ♥ Do have faith in what you're doing.