Git · Senior · Question 60 of 76

How do you prevent a huge package-lock.json diff from drowning the real change in review?

Explanation

Attributes can collapse generated files in platform diffs and skip them in git diff, while the lockfile itself stays committed for reproducible installs.

Further reading

Problem with a question

Git · Senior · question 60

Test yourself

Take the Git · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz