appsettings-schema.json in git or ignore?
# help-with-umbraco
d
appsettings-schema.json keeps popping up as changed in git but shows no changes Do you add it to gitignore?
o
Hey Dean - ye just add it to your ignore list - it's what I do.
m
it's already ignored in the umbraco core .gitignore? unless you aren't using that.. Ah but as this is created with the new template it won't get updated if you've updated from 9->10->11 (same as changes in startup.cs/program.cs)
Copy code
##
## Umbraco CMS
##

# JSON schema files for appsettings.json
appsettings-schema.json
appsettings-schema.*.json

# Packages created from the backoffice (package.xml/package.zip)
/umbraco/Data/CreatedPackages/

# Temp folder containing Examine indexes, NuCache, MediaCache, etc.
/umbraco/Data/TEMP/

# SQLite database files
/umbraco/Data/*.sqlite.db
/umbraco/Data/*.sqlite.db-shm
/umbraco/Data/*.sqlite.db-wal

# Log files
/umbraco/Logs/

# Media files
/wwwroot/media/
d
You are right, it is already in gitignore. I wonder why git is flagging it as a changed file?
n
If it's been committed once then a y changes in the future are tracked even if it's in future git ignores. You have to explicitly tell your git to forget about it... Something like 'git rm ./appsettings-schema.json -C' I think. Please Google the command to get the right version though!
d
Thanks Nik - I was wondering that. I then usually spend an hour searching which of the 10 places I put the untrack file/folder git command 🙂 Now Chat GPT 🙂
Copy code
git rm --cached path/to/file.ext
41 Views