當我打「git的狀態」,它顯示了2個文件夾,其中包含有很久以前跟蹤文件:Git在Windows上:爲什麼我突然有了跟蹤的未跟蹤目錄?
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# src/UI/Views/Shared/EditorTemplates/
# src/Web/helpers/
nothing added to commit but untracked files present (use "git add" to track)
的Git GUI顯示什麼預期。
使用portablegit 1.7.1,但試過1.7.0.2 - 結果相同。
是什麼原因造成的?
$ cat .gitignore
.nu/*
lib/*
*~
*.swp
*.swo
*_ReSharper*
doc/*
RAPLM.suo
RAPLM.5.1.ReSharper.user
src/*/bin/*
src/*/obj/*
src/*/Debug/*
src/*/Release/*
src/Domain/unused
@Charles貝利
[email protected] /d/work/asdf (master)
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# src/UI/Views/Shared/EditorTemplates/
# src/Web/helpers/
nothing added to commit but untracked files present (use "git add" to track)
[email protected] /d/work/asdf (master)
$ git add src/Web/helpers/
[email protected] /d/work/asdf (master)
$ git add src/Web/helpers/*
[email protected] /d/work/asdf (master)
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# src/UI/Views/Shared/EditorTemplates/
# src/Web/helpers/
nothing added to commit but untracked files present (use "git add" to track)
[email protected] /d/work/asdf (master)
$
@Charles
$ git的LS-樹-r HEAD |在不區分大小寫的OS 「
git add
」:grep的-i助手
100644一滴843de27f850308786140a7c09f67b5ef99184630 SRC/WEB /助理/ HtmlHelperExtensions.cs
看看你的.gitignore文件。 – adamk 2010-08-16 10:10:42
@adamk我做到了。什麼改變了? :/ – 2010-08-16 10:14:04
@Arnis:這是一種預感,我猜這不是它... – adamk 2010-08-16 10:21:12