vyi
vyi

Reputation: 1092

Gitignore GLOB pattern to track files without file extension

I want to track the files which have no file extension. I am using following .gitignore file

.gitignore
*.*     # THIS CATCHES EVERYTHING
!*.asm

# I TRIED THE BELOW directives
#*.\d{1}*  
#*.[?]*
#*.[?*]

Point me in the right direction!

Upvotes: 1

Views: 216

Answers (1)

akond
akond

Reputation: 16045

I ended up with this .gitignore:

.gitignore
**/*.*
!*.asm

Upvotes: 1

Related Questions