MajestySolor
V2EX  ›  问与答

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

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