V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
JasonLaw
V2EX  ›  程序员

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

  •  
  •   JasonLaw · Jul 22, 2023 · 1012 views
    This topic created in 1013 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   ·   823 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 20:18 · PVG 04:18 · LAX 13:18 · JFK 16:18
    ♥ Do have faith in what you're doing.