I want to ignore everything in my project except for
Additionally I want to ignore one file ProjectSettings/ProjectSettings.asset
I searched around and wrote this in my gitignore file:
# Ignore Everything
/*
# Except for these:
!/.gitignore
!/Assets
!/ProjectSettings
# Ignore just ProjectSettings
!/ProjectSettings/*
/ProjectSettings/ProjectSettings.asset
The problem is it is still including ProjectSettings/ProjectSettings.asset in my commits. How can I ignore this file while un-ignoring its parent folder?
Try Removing the file from git chached
:
$ git rm --cached ProjectSettings/ProjectSettings.asset