Git add . gives no such file error

i am unable to add the files to git and hence build is failing

Took a backup of the files, deleted them and recreated them. Works. Can anyone tell me why this occured?