This is the state of my git directory:
MINGW64 ~/git/__UNITY/HMD-Air (OcclusionSimulator/dev2)
$ git clean -dfX
MINGW64 ~/git/__UNITY/HMD-Air (OcclusionSimulator/dev2)
$ cat .gitignore
Android/.idea
# Built application files
*.apk
*.aar
*.ap_
*.aab
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# IntelliJ
*.iml
.idea/workspace.xml
.idea/tasks.xml
.idea/gradle.xml
.idea/assetWizardSettings.xml
.idea/dictionaries
.idea/libraries
# Android Studio 3 in .gitignore file.
.idea/caches
.idea/modules.xml
# Comment next line if keeping position of elements in Navigation Editor is relevant for you
.idea/navEditor.xml
# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/
# Google Services (e.g. APIs or Firebase)
# google-services.json
# Freeline
freeline.py
freeline/
freeline_project_description.json
# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md
# Version control
vcs.xml
# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/
# This .gitignore file should be placed at the root of your Unity project directory
#
# Get latest from https://github.com/github/gitignore/blob/master/Unity.gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/[Ll]ogs/
/[Uu]ser[Ss]ettings/
# MemoryCaptures can get excessive in size.
# They also could contain extremely sensitive data
/[Mm]emoryCaptures/
# Asset meta data should only be ignored when the corresponding asset is also ignored
!/[Aa]ssets/**/*.meta
# Uncomment this line if you wish to ignore the asset store tools plugin
# /[Aa]ssets/AssetStoreTools*
# Autogenerated Jetbrains Rider plugin
/[Aa]ssets/Plugins/Editor/JetBrains*
# Visual Studio cache directory
.vs/
# Autogenerated VS/MD/Consulo solution and project files
ExportedObj/
.consulo/
*.csproj
*.unityproj
*.sln
*.suo
*.tmp
*.user
*.userprefs
*.pidb
*.booproj
*.svd
*.pdb
*.mdb
*.opendb
*.VC.db
# Unity3D generated meta files
*.pidb.meta
*.pdb.meta
*.mdb.meta
# Unity3D generated file on crash reports
sysinfo.txt
# Package
*.unitypackage
# Crashlytics generated file
crashlytics-build.properties
# Packed Addressables
/[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin*
# Temporary auto-generated Android Assets
/[Aa]ssets/[Ss]treamingAssets/aa.meta
/[Aa]ssets/[Ss]treamingAssets/aa/*
Logs
Temp
UserSettings
.idea
.vscode
# Document
**/.obsidian
# MacOS
**/.DS_Store
MINGW64 ~/git/__UNITY/HMD-Air (OcclusionSimulator/dev2)
$ ls -la
total 83
drwxr-xr-x 1 peng 197121 0 Aug 5 18:17 ./
drwxr-xr-x 1 peng 197121 0 Jul 27 23:56 ../
-rw-r--r-- 1 peng 197121 8196 Aug 5 18:14 .DS_Store
drwxr-xr-x 1 peng 197121 0 Aug 5 18:14 .git/
-rw-r--r-- 1 peng 197121 42 Jul 28 00:17 .gitattribute
drwxr-xr-x 1 peng 197121 0 Jul 28 00:17 .github/
-rw-r--r-- 1 peng 197121 2988 Aug 5 18:13 .gitignore
-rw-r--r-- 1 peng 197121 187 Jul 28 00:17 .gitmodules
-rw-r--r-- 1 peng 197121 105 Jul 28 00:17 .vsconfig
drwxr-xr-x 1 peng 197121 0 Aug 5 18:16 Assets/
drwxr-xr-x 1 peng 197121 0 Aug 5 17:38 Packages/
drwxr-xr-x 1 peng 197121 0 Aug 5 18:16 ProjectSettings/
-rw-r--r-- 1 peng 197121 1066 Jul 28 00:17 README.md
drwxr-xr-x 1 peng 197121 0 Aug 4 18:40 dev/
drwxr-xr-x 1 peng 197121 0 Jul 28 00:17 doc/
-rw-r--r-- 1 peng 197121 16071 Aug 5 18:11 logo.png
As can be seen, the .DS_Store
file is still there despite being explicitly ignored, what may have caused this and how to remove it once and for all?