I'm using Git to create a backup system.
I've just created the directory and initialized git on it.
git init
When I tried to add the untracked files to the stage with
git add -u *.pdf
I get this response error:
sh.exe": /bin/git: Bad file number
As additional information, I have a list of ~4500 untracked files and if I try to add the files one by one, I don't get any error response and the files are sent to the stage.
Does anyone know how to solve this problem and why it happens? I need to add all these untracked files, but I don't want to do that in a "monkey job" way, adding one by one.