Only for one file, I am getting the following error:
error: unable to write sha1 filename /opt/www/.git/objects/3f/ce3587c54a8be14c69b08c6b01f94949b11b47: Pe
error: open("3/BasicMVVM/.vs/BasicMVVM/v16/Server/sqlite3/db.lock"): Permission denied
error: unable to index file 3/BasicMVVM/.vs/BasicMVVM/v16/Server/sqlite3/db.lock fatal: adding files failed
if you have such error and you are working on visual studio.first you close the visual studio. git bash and write "git add * " with out inverted commas and on the suitable place it will work for my self