DEV Community

Cover image for Pair husky with Git LFS in your JavaScript project

Pair husky with Git LFS in your JavaScript project

Max Belsky on October 14, 2019

As you may know Git has a way to fire off custom scripts when certain important actions occur. This is hooks. I have worked on a project which use...
Collapse
 
threeoakgroove profile image
Threeoakgroove

Hey Max, thanks for your article. Actually I was stumbling accross the exact same issue this week and your article helped a lot.

I got two further questions. First to the Husky-Params that you pass to the hooks. What are they used for inside the hook? I left them out and it still works fine for me.

Second, have you tried this only on Linux/MAC systems? Because transforming the hooks to executables will not work on Windows-machines, i suppose.

Collapse
 
mbelsky profile image
Max Belsky

Hey,

Thanks for letting know about husky-params optionality. I'll try to make some research about that.

Yes, I've tried on mac only. What do you think may go wrong on windows? I have a PC so can make some checks.