5
If you wish remove this repository file and make it no longer versioned in it, you need to add it in the .gitignore
and remove it using the command below:
git rm --cached package-lock.json
Now, if you wish keep up this file in the repository but do not want any new change in it to be committed, you must use the command
git update-index --assume-unchanged package-lock.json
If you want to re-track changes in it:
git update-index --no-assume-unchanged package-lock.json