본문 바로가기
Git/Git & GitHub

[Git] The following untracked working tree files would be overwritten 오류 해결

by ♡˖GYURI˖♡ 2024. 6. 7.

main에서 review로 checkout하려 할 때 다음과 같이 오류가 발생하였다.

 

untracked working tree file들을 먼저 옮기거나 지우라는 것 같다.

메시지에 따라 추적하지 않는 파일들을 제거하면 된다.

 

적용하지 않고 무엇을 해야 할지만 보고 싶을 때

git clean -fd --dry-run	// 또는
git clean -fdn

 

세 가지 파일을 remove하라고 뜬다.

 

 

적용까지하고 싶을 때

git clean -fd

 

remove 완료~

 

 

성공적으로 checkout까지 완료~

 

 

 

 


 

 

[Git] The following untracked working tree files would be overwritten 해결방법

error: The following untracked working tree files would be overwritten 해결해보기

velog.io