2017-08-11 7 views
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 

答えて

0

は解決済み、.gitignore:

# Ignore all files 
* 

# Ignore all files in subdirectories 
#**/** 

# Unignore all with extensions 
!*.* 

# Unignore all files in subdirectories 
/* 
!/*.asm 
!/*.c 
!/*.sh 
!/*.md 
!/*.txt 
!/*/ 
/*/** 

!/**/*.asm 
!/**/*.c 
!/**/*.sh 
!/**/*.md 
!/**/*.txt 

# Except source code files 
!.gitignore 
!*.readme 
!*.c 
!*.asm 
!*.sh 
!*.md 
!*.txt 
関連する問題