1
Ich entwickle einige Quellcodes in ASM, aber ich möchte nicht die Binärdateien und Obj-Dateien speichern, alle Ordner sind ein neues "Projekte", alles ist in Ordnung, aber wenn ich machte einige Änderungen in Ubuntu keine Änderungen vornehmen. Z.B.Git ignorieren alle Dateien mit Ausnahme einiger Dateien in Unterverzeichnissen
/
|- HelloWorld/
|- hello.asm
|- hello.o
|- hello
|- SomeProject/
|- some.asm
|- some.o
|- some
|- CProject/
|- project.c
|- project.o
|- project
Mein .gitignore ist:
# Ignore all ASM Binaries
*
# Except source codes files in root
!*.c
!*.asm
!*.sh
!*.gitignore
!*.md
!*.txt
# And source code files in subdirectories
!**/*.c
!**/*.asm
!**/*.sh
!**/*.gitignore
!**/*.md
!**/*.txt
auch versucht:
!*/*.txt
!/**/*.txt
!/*/*.txt
!**/*.txt