I created a customApps.json file I that added to git in it's initial state (so it's always there when repo is pulled).
{
"apps": []
}
After I initially add it to git and pushed, I modified my .gitignore file with the following, and pushed the changes:
*customApps.json
Then I make changes to the customApps.json file.
Desired result: GIT ignores any changes
Actual result: GIT says customApps.json has been modified.
How do I keep the file in GIT in it's initial state, and stop further tracking of changes? This needs to work for anyone who pulls the repo, not just me. So git update-index --assume-unchanged [path]
won't work, because other people will need to run that also manually.
I trying google and can't find anything that's worked.