Library/ArtifactDB keeps appearing in git changes even when using valid .gitignore

Hi,

So my issue is that Library/ArtifactDB (among other files) keeps appearing in my local changes even when using a valid .gitignore (see below).
Even if I manage tp hide it, it keeps appearing every time I open my project.
I’m using GitlabDesktop for source management.

Is anyone else experiencing this issue?

/[Ll]ibrary/
/
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/
    
    # Recordings can get excessive in size
    /[Rr]ecordings/
    
    # 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
    *.app
    
    # 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/*
    Library/ArtifactDB

Hey there!

Can you check that …

  1. …your .gitignore is not ending in .txt or something else (also check if you’re hiding file extensions in the Explorer or Finder). It should just be called “.gitignore”, nothing else.

  2. …your project folder structure is correct & .gitignore is in the correct folder. Afaik, if you specify a path in your .gitignore files (like you are doing with eg “/[Ll]ibrary/” then those are always relative to the location of the .gitignore file. That means your current .gitignore file will only work if it is placed inside the project directory (next to the Library, Asset, Temp, etc. folders). You could also delete the starting “/” character from your folder paths. The result will be that git will ignore any Library folder anywhere in your repository.