Git for Windows: long file path error
If during check-out git for Windows gives the following error:
> git clone https://github.com/delta-io/delta
Cloning into 'delta'...
remote: Enumerating objects: 77536, done.
remote: Counting objects: 100% (628/628), done.
remote: Compressing objects: 100% (321/321), done.
remote: Total 77536 (delta 171), reused 487 (delta 96), pack-reused 76908 (from 1)
Receiving objects: 100% (77536/77536), 35.41 MiB | 7.18 MiB/s, done.
Resolving deltas: 100% (33238/33238), done.
fatal: cannot create directory at 'connectors/golden-tables/src/main/resources/golden/data-reader-partition-values/as_int=0/as_long=0/as_byte=0/as_short=0/as_boolean=true/as_float=0.0/as_double=0.0/as_string=0/as_string_lit_null=null/as_date=2021-09-08/as_timestamp=2021-09-08 11%3A11%3A11': Filename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
simply enable long file path:
git config --system core.longpaths true
To contact me, send an email anytime or leave a comment below.