• 请不要在回答技术问题时复制粘贴 AI 生成的内容
JasonLaw
V2EX  ›  程序员

为什么 IntelliJ IDEA 的 Commit 出现了很多不相关的目录?

  •  
  •   JasonLaw · Jul 22, 2023 · 1089 views
    This topic created in 1044 days ago, the information mentioned may be changed or developed.

    如图所示,我当前打开的项目是/Users/jason/IdeaProjects/ergao/admin ,但是 Commit 出现了一堆/Users/jason/IdeaProjects 下面的东西,之前的版本是不会的。想问一下怎么排除掉这些不相关的目录?

    IntelliJ IDEA 版本信息。

    Supplement 1  ·  Jul 25, 2023

    找到原因了,原因是上层的目录是个git repo,删除掉.git就可以了。

    cslive
        1
    cslive  
       Jul 24, 2023
    忽略掉,.gitignore 配置
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5571 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 07:07 · PVG 15:07 · LAX 00:07 · JFK 03:07
    ♥ Do have faith in what you're doing.