It looks bad, but never fear!
You need to save, commit or add the changes in the file, and make sure there are no errors. I like to think of it as a kind of 'wet paint' sign. Work's not complete yet!
So for the example where my
package-lock.json is red and has a
!, I can either:
git add package-lock.json git commit package-lock.json
git revert HEAD [main COMMIT_REF] Revert "prepend content to package.json" 1 file changed, 1 deletion(-)
(I also need to check for errors in my code.)
If you need more info on
git revert (I certainly did, it's cool how it saves your commits so you don't lose anything), there's a helpful article on Atlassian.