代码之家  ›  专栏  ›  技术社区  ›  Yamen Nassif

Git:如何删除未跟踪的文件“\\”

git
  •  0
  • Yamen Nassif  · 技术社区  · 7 年前

    由于某种原因,在我运行之后,所有本地分支上都存在一个异常的未跟踪文件,并显示以下消息 git status

    On branch develop
    Your branch is up-to-date with 'origin/develop'.
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
    
        "\\"
    
    nothing added to commit but untracked files present (use "git add" to track)
    

    正如我在所有现有的/新的本地分行所说的那样,我怎样才能去除这个问题呢?这到底意味着什么?

    1 回复  |  直到 7 年前
        1
  •  1
  •   Jim Wright    7 年前

    你在找 git clean .

    git clean -n 检查将要删除的内容,当您满意时,可以使用 git clean -fd .