Adding Solution to Source Control Error

Hi Guys, I'm getting this Error when I try to add the Blazor App to Source Control from Visual Studio.
any idea what the problem is.

Thanks

Git failed with a fatal error.
error: open(".vs/Hivoltech/v16/Server/sqlite3/db.lock"): Permission denied
fatal: Unable to process path .vs/Hivoltech/v16/Server/sqlite3/db.lock

Git failed with a fatal error.
warning: LF will be replaced by CRLF in server/_Imports.razor.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in server/wwwroot/assets/css/styles.css.
The file will have its original line endings in your working directory..........Long list of repeating errors

I searched online and found this. The .vs directory shouldn't be included to source control as it stores local user settings.

That was it.

Thanks

I think I'm getting Dain Bramage staring at the computer