birdplane
V2EX  ›  问与答

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

  •  
  •   birdplane · Oct 31, 2017 · 1623 views
    This topic created in 3141 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   ·   817 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 21:33 · PVG 05:33 · LAX 14:33 · JFK 17:33
    ♥ Do have faith in what you're doing.