My .gitignore file is in the main GitHub repo folder, in which the entire Unity project also is. It is a slightly modified version of the default one given by Unity, nwhich doesn’t work either. Problem is the .gitignore file isn’t doing what it should be doing. The following is what my .gitignore file looks like and it’s what I mainly want to ignore:
# 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
#
**/Library/
**/[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/
# Gradle cache directory
.gradle/
# 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
# Builds
*.apk
*.aab
*.unitypackage
# Crashlytics generated file
crashlytics-build.properties
I’ve tried all of the following to ignore and none of them work: **/[Ll]ibrary/, **/Library/, [Ll]ibrary/, /[Ll]ibrary/
The ones with the double asterisks do ignore 8000+ files that I untracked with git rm -r --cached, but they don’t ignore any changes made in e.g. Library/ArtifactDB or Library/PackageManager/ProjectCache.
How do I get my .gitignore to ignore these files?