1
私はASMでいくつかのソースコードを開発していますが、バイナリとobjファイルを保存したくありません。 Ubuntuで何らかの変更を加えても何の変更も加えられません。例えば。Gitはサブディレクトリ内のいくつかのファイルを除いてすべてのファイルを無視します
/
|- HelloWorld/
|- hello.asm
|- hello.o
|- hello
|- SomeProject/
|- some.asm
|- some.o
|- some
|- CProject/
|- project.c
|- project.o
|- project
マイ.gitignoreは次のとおりです。
# 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
も試してみました:
!*/*.txt
!/**/*.txt
!/*/*.txt
!**/*.txt