#appsettings-schema.json in git or ignore?

1 messages · Page 1 of 1 (latest)

glossy chasm
#

appsettings-schema.json keeps popping up as changed in git but shows no changes
Do you add it to gitignore?

river merlin
#

Hey Dean - ye just add it to your ignore list - it's what I do.

mental basalt
#

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)

##
## 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/
glossy chasm
#

You are right, it is already in gitignore.
I wonder why git is flagging it as a changed file?

pulsar jacinth
#

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!