Meine Codestruktur ist:
.gitignore
my-service << this is a file without an extention
charts
| my-service << this is a folder
| | file1
| | file2
Wenn ich in mein Gitignore schreibe my-service
es ignoriert sowohl die Datei my-service als auch my-service
die Mappe. Wie kann ich nur die Datei im Stammverzeichnis ignorieren und nicht das Unterverzeichnis?
Vielleicht ist das nützlich: 2brightsparks.com/bb/viewtopic.php?t=10067
– Rann Lifschitz
22. März 2018 um 4:54 Uhr
Mögliches Duplikat von How to Exclude file only from root folder in Git
– max630
22. März 2018 um 8:43 Uhr