birdplane
V2EX  ›  问与答

怎么把 git 之前停止追踪的目录再恢复追踪

  •  
  •   birdplane · Oct 31, 2017 · 1646 views
    This topic created in 3159 days ago, the information mentioned may be changed or developed.

    之前用这个命令停止的追踪 现在怎么恢复回来呢

    git rm --cached file
    
    1 replies    2018-04-27 19:05:44 +08:00
    Joechin
        1
    Joechin  
       Apr 27, 2018
    今天遇到了同样的场景。中文环境只搜索到这里有提到类似问题。

    尝试后,这样的操作可以满足 add -f 参数

    git add -f file
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:29 · PVG 04:29 · LAX 13:29 · JFK 16:29
    ♥ Do have faith in what you're doing.