fatal: pathspec - Filename too long - GIT - woocommerce

Hi Friends, please check this long url ---> /wp-content/plugins/woocommerce/packages/woocommerce-blocks/assets/js/atomic/blocks/product-elements/add-to-cart/product-types/variable/variation-attributes/attribute-select-control.js' did not match any files

Fail in GIT

$ git clean -fd

fatal: Cannot lstat 'production/wp-content/plugins/woocommerce/packages/woocomme rce-blocks/assets/js/atomic/blocks/product-elements/add-to-cart/product-types/va riable/variation-attributes/attribute-select-control.js': Filename too long

Thanks !

Asked Sep 29 '21 09:09
avatar loorlab
loorlab

3 Answer:

Solution for WIN:

Git bash - Administrator Mode

git config --system core.longpaths true

git config --global core.longpaths true

1
Answered Mar 19 '21 at 05:43
avatar  of loorlab
loorlab

Thanks @loorlab for providing solution. Will be closing this issue now.

1
Answered Mar 31 '21 at 23:31
avatar  of roykho
roykho

@roykho Thank you.

Although the route system is very exaggerated.

🤔

1
Answered Apr 01 '21 at 14:31
avatar  of loorlab
loorlab