MajestySolor
V2EX  ›  问与答

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

  •  
  •   MajestySolor · Dec 23, 2016 · 3378 views
    This topic created in 3453 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   ·   907 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 19:29 · PVG 03:29 · LAX 12:29 · JFK 15:29
    ♥ Do have faith in what you're doing.