selfcreditgiving
V2EX  ›  问与答

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

  •  
  •   selfcreditgiving · Aug 4, 2020 · 2032 views
    This topic created in 2282 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
    en20
    Aug 4, 2020❤️1
    1
    修复 .gitignore 无效

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