I have a repo containing a bunch of files .png. They are organized into two subdirectories.


As you can see, these are the icons and screens for the iOS application (I don’t know, useful information).
I do a git initand a git add -A.
PNG files are screen/tracked. PNG files icon/are left without a trace.
This is my global .gitignore
*.retry
.dropbox
.dropbox.attr
.dropbox.cache
logs
*.log
npm-debug.log*
pids
*.pid
*.seed
*.pid.lock
lib-cov
coverage
.nyc_output
.grunt
.lock-wscript
build/Release
node_modules
jspm_packages
.npm
.eslintcache
.node_repl_history
*.tgz
.yarn-integrity
*.rdb
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
*.sublime-workspace
sftp-config.json
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
bh_unicode_properties.cache
GitHub.sublime-settings
.vagrant/
.Python
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
.venv
pip-selfcheck.json
build/
DerivedData/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
xcuserdata/
*.moved-aside
*.xccheckout
*.xcscmblueprint
*.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
This is my local .gitignore
build/
.retry
I also tried running git check-ignore -v *to find which rule .gitignoreprevents tracking of png icon files, but there are no rules:
.gitignore:1:build/ build
/Users/me/.gitignore_global:1:*.retry copy_resources.retry
I also tried to check extended attributes with ls -al@, but I could not detect any differences.
Can you explain why and provide a solution, please?