Cannot commit

HI, recently i started a new project using vs2017 couldn’t make any branch but used ‘master’ branch.
If i want to commit to my server i got error:

Git failed with a fatal error.
error: open(“Firewall/.vs/Firewall/v15/Server/sqlite3/db.lock”): Permission denied
fatal: Unable to process path Firewall/.vs/Firewall/v15/Server/sqlite3/db.lock

I guess it has to do with the fact that or visual studio is open and the file is is use or i don’t have any permissions on that folder-> folder and project is on my nas server altough i have normally read and write rights since my nas is my pc storage.
kind regards