selfcreditgiving
V2EX  ›  问与答

为什么 .idea 目录从 git 中删除不行呢 git rm --cached -r .idea

  •  
  •   selfcreditgiving · Aug 4, 2020 · 1877 views
    This topic created in 2192 days ago, the information mentioned may be changed or developed.

    intelliJ IDEA 的工作目录 .idea 不小心加到 git 里了,想取消掉,这样操作为什么不行呢?

    4 replies    2020-08-04 16:55:02 +08:00
    en20
        1
    en20  
       Aug 4, 2020   ❤️ 1
    修复 .gitignore 无效

    git rm -r --cached .
    git add .
    git commit -m "fix: 修复 .gitignore 无效"
    uncat
        2
    uncat  
       Aug 4, 2020
    不要 --cached 试试.
    selfcreditgiving
        3
    selfcreditgiving  
    OP
       Aug 4, 2020
    @en20 #1 非常感谢,这么简单解决了一直以来的问题
    en20
        4
    en20  
       Aug 4, 2020 via iPhone
    @selfcreditgiving 不客气,我原来也一直碰到这个问题,后来找到办法就记小本本上
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2683 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 15:47 · PVG 23:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.