2

I have a directory name "[afdsklj]" in my git repo. It seems that git sparse checkout still gives me fatal error invalid argument when it tries to create the new directory. Is there someway to have git exclude this bad directory altogether?

N M
  • 596
  • 4
  • 18

1 Answers1

0

Check first if you can escape those characters in your git sparse-checkout definition:

 \[afdsklj\]

If not, as in here, try and add wildcards:

 *afdsklj*
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • the folder in question is inside another folder. However, excluding the parent folder doesn't prevent it from causing this error. I suspect that it may be because Git tries to create the folder first and then filter the files based on the sparse-checkout patterns – N M Oct 18 '18 at 05:30