본문 바로가기
BugReport

[Git] Unlink of file [파일 경로] failed. Should I try again? (y/n)

by 무사뎀벨레 2022. 10. 28.

 

 

 

 

 

어느 날 git reset --hard 명령어를 통해 이전 커밋으로 돌아가려고 하는데,
다음과 같은 에러 메시지가 노출되었습니다.

 

 

 

 

 

 

 

 

Unlink of file [파일 경로] failed. Should I try again? (y/n)


검색해 보니 다른 프로그램이 해당 파일을 사용하고있을 경우 발생할 수 있고, 이는 변경을 시도할 때 git이 작업 디렉토리로 파일을 "이동"하지 못하게 한다고 합니다.

https://stackoverflow.com/questions/4389833/unlink-of-file-failed-should-i-try-again

 

Unlink of file Failed. Should I try again?

Something wrong is going on with one of the files in my local git repository. When I'm trying to change the branch it says: Unlink of file 'templates/media/container.html' failed. Should I try aga...

stackoverflow.com

 

 

 

 

 

해결 방법


Unlink of file [파일 경로] failed. Should I try again? (y/n) 이 나오면 y를 입력해 다시 pull 받을 수 있습니다.

반응형

댓글