What I’m trying to do:
Have changes to anvil.yaml ignored when pushing to Github from a local repo.
What I’ve tried and what’s not working:
Going from Handling anvil.yaml in a git workflow I have tried the following steps:
- Clone a project on Github to my local machine
- Run the
git update-index --skip-worktree anvil.yaml
command on the repo on my local machine - Add an Anvil app as a remote
- Do an initial force push to the Anvil app
- Do some changes to the Anvil app that would update anvil.yaml (updating dependencies)
- Pull those changes from the Anvil app to my local repo
- Push to Github
I’d assumed the changes to anvil.yaml would not be pushed. But clearly I did something wrong, since the changes to anvil.yaml were pushed to Github.
Has the way to ignore changes to anvil.yaml changed in the three years since Owen’s post? Or did I muck it up in some fashion?