DEV Community

Discussion on: Git Concepts I Wish I Knew Years Ago

Collapse
 
anonimoconiglio profile image
Santiago • Edited

Hi! thanks really useful!

My two cents: in .gitattributes, instead of using
package-lock.json binary
You can use
package-lock.json -diff

It will have the same result I guess, preventing git to show the differences ;)

(maybe is more correct with -diff according to the nature of the file)