Ich habe /build/
zu meinem .gitingore
hinzugefügt, aber jedes Mal, wenn ich baue, zeigt git
, dass mein build
Ordner nicht geparkt ist. Ich habe Hierarchieordner folgendeNicht sicher warum aber .gitignore funktioniert nicht
~/workspace/ProjectName/ ➤ 617a838|mainline⚡
1361 ± : tree -La 1 [6d1h6m] ✭
.
├── .DS_Store
├── .git
├── .gitignore
├── Config
├── build
├── build.xml
├── checkstyle.xml
├── configuration
├── src
└── tst
5 directories, 5 files
~/workspace/ProjectName/ ➤ 617a838|mainline⚡
1362 ± : git status [6d1h7m] ✭
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
build
nothing added to commit but untracked files present (use "git add" to track)
Hier ist der Inhalt von .gitignore
/build/
/eclipse-bin/
eine Sache, die ich bemerkt habe, ist, dass .gitingore
eine versteckte Datei. Ist das überhaupt wichtig?
macht das Entfernen der/auf der linken Seite einen Unterschied? – eftshift0
Vielleicht hilft diese Antwort https://stackoverflow.com/questions/11451535/gitignore-is-not-working –
Ihre 'git status' Ausgabe zeigt an, dass' build' eine * Datei * ist, kein Verzeichnis ("Ordner")). – torek