I am trying to do git add .
on my project but this certain error always appear.
I have looked at every possible way on how to fix this and the top results always show to add .gitignore and still the error open(".vs/*****/v16/Server/sqlite3/db.lock"): Permission denied
is showing.
Any ideas how to fix this?
The top results always show to add
.gitignore
and still the error
That would work only if .vs/
is not already tracked by Git.
Check first:
cd C:\path\to\my\repository
git rm --cached -r .vs/
echo .vs/>>.gitignore
The git add
command should now work:
git add .
for this if you work in visual studio when adding files in to git using git bash,first close visual studio. then use git bash to add files to github.It works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With