The folder consists of files with filenames like abc~1
, 123~1
, a1d2~3
.
When I do git add --all
it says,
$ git add --all
error: Invalid path 'abc~1.png'
error: unable to add abc~1.png to index
fatal: adding files failed
I did a trial and error and I found this error persists only when the tilde symbol is followed by a number.
If the folder is tracked by git for the first time, the other files are also not tracked by Git.
$ git clean --dry-run
Would remove Rest.png
Would remove abc~1.png
Please help how do I fix this issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…