모든 커밋에서 VS 2017 Git Local Commit DB.lock 오류
모든 로컬 커밋 에서이 오류가 발생합니다.
치명적인 오류로 인해 Git이 실패했습니다. 오류 : open ( ". vs / XXXXXX.Dev.Library / v15 / Server / sqlite3 / db.lock") : 권한이 거부되었습니다. 치명적인 경로 : .vs / XXXXXX.Dev.Library / v15 /Server/sqlite3/db.lock
이것은 로컬 git 저장소를 사용하여 VS 2017 GIT와 동기화하기 전에 VS 2017을 새로 설치 한 것입니다.
우리는 수동으로 잠금 파일을 삭제 한 다음 잘 동기화 할 수 있지만 개발 프로세스가 크게 느려집니다 ( 폐쇄 , 삭제 , 열기 , 커밋 할 때마다).
누구 든지이 문제에 대한 더 나은 장기 수정을 알고 있습니까?
.vs 폴더를 .gitignore 파일에 추가 하십시오.
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 는 GitHub의 .gitignore 템플릿 모음에서 Visual Studio 용 템플릿입니다.
.gitignore 파일을 추가하는 데 문제가 있으면 다음 단계를 따르십시오.
- 팀 탐색기 창에서 설정으로 이동하십시오.
- 그런 다음 리포지토리 설정에 액세스하십시오.
- 마지막으로, 파일 무시 섹션에서 추가를 클릭하십시오.
끝난. ;)
이 기본 파일에는 이미 .vs 폴더가 포함되어 있습니다.
- .vs 폴더를 커밋해서는 안됩니다.
- 프로젝트 git 루트 디렉토리에 ".gitignore"라는 이름의 파일을 만듭니다.
- ".gitignore"파일에 다음 ".vs /"행을 추가하십시오.
- 이제 프로젝트를 커밋하십시오.
1 단계 :
.vs /를 .gitignore 파일에 추가하십시오 (다른 답변에서 언급했듯이).
Step 2:
It is important to understand, that step 1 WILL NOT remove files within .vs/ from your current branch index, if they have already been added to it. So clear your active branch by issuing:
git rm --cached -r .vs/*
Step 3:
Best to immediately repeat steps 1 and 2 for all other active branches of your project as well.
Otherwise you will easily face the same problems again when switching to an uncleaned branch.
Pro tip:
Instead of step 1 you may want to to use this official .gitingore template for VisualStudio that covers much more than just the .vs path:
https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
(But still don't forget steps 2 and 3.)
I had the same issue but I've resolved by creating the .gitignore file.
I've also found a workaround that simply consists on removing db.lock file from the .vs folder but you have to do it every single time and doing this for long makes this an annoying operation.
The best way to solve this issue is to create the .gitignore file as suggested before, but I think that is good to mention also this workaround, just to general knowledge purpose!
Regards, Tony Grinton
I'm not using Git directly thru Visual Studio but using the Git Desktop client.
I did however get a similar error but solved it by closing Visual Studio before Committing changes to master.
if you are using an IDE like visual studio and it is open while you sending commands close IDE and try again
git add .
and other commands, it will workout
For me steps below helped:
- Close Visual Studio 2019
- Delete .vs folder in the Project
- 프로젝트를 다시 열면 .vs 폴더가 자동으로 생성됩니다
- 끝난
FTP가 열려 있으면 닫고 다시 시도하십시오.
파일을 디렉토리에 수동으로 복사하십시오 (C : \ Users \ Admin \ AppData \ Local \ Temp \ WebSitePublish \ digisol--1147805695 \ obj \ Debug \ Package \ PackageTmp.vs \ digisol \ v15 \ Server \ sqlite3)
이 문제를 해결하는 것은 간단합니다. 먼저 Visual Studio를 닫고 Windows 탐색기를 열고 위치 폴더 .vs로 이동하여 폴더 속성을 열고 숨겨진 옵션을 확인하십시오.
참고 URL : https://stackoverflow.com/questions/47460039/vs-2017-git-local-commit-db-lock-error-on-every-commit
'IT story' 카테고리의 다른 글
부울 ViewModel 속성의 부정 (“!”)에 데이터 바인딩을 표시 할 수 있습니까? (0) | 2020.06.04 |
---|---|
DynamoDB 및 MongoDB NoSQL [폐쇄] (0) | 2020.06.04 |
전화 : 텍스트 입력을위한 숫자 키보드 (0) | 2020.06.03 |
맵을 통한 C ++ 루프 (0) | 2020.06.03 |
파이썬에서 트리를 어떻게 구현할 수 있습니까? (0) | 2020.06.03 |