1

I`m trying to commit to my DevOps using Git source. for some reason I cannot proceed with the commit phase.

The error:

Git failed with a fatal error.
error: open("FinalWorkFinder/FinalWorkFinder/App_Data/aspnet-FinalWorkFinder-20190303122718.mdf"): Permission denied
fatal: Unable to process path FinalWorkFinder/FinalWorkFinder/App_Data/aspnet-FinalWorkFinder-20190303122718.mdf

If I go to repository settings, I can see that there is already a .gitignore file, but it does not ignore .mdf.

What should I do?

4

1 回答 1

1

First, try and double-check that status from the command-line:

git status

If the file is ignored and yet still tracked, do:

git rm --cached -- FinalWorkFinder/FinalWorkFinder/App_Data/aspnet-FinalWorkFinder-20190303122718.mdf

Make sure it is actually ignored with:

git check-ignore -v -- FinalWorkFinder/FinalWorkFinder/App_Data/aspnet-FinalWorkFinder-20190303122718.mdf

Followed by a git commit: see if the issue persists for future commits.

于 2019-04-15T16:38:54.677 回答