Written by coh at home

[GitError]Your local changes to the following files would be overwritten by checkout: 본문

Etc/Error

[GitError]Your local changes to the following files would be overwritten by checkout:

och 2023. 9. 17. 17:29

error: Your local changes to the following files would be overwritten by checkout:
        Panthers.yaml
Please commit your changes or stash them before you switch branches.
Aborting

 

다음과 같은 에러는 내가 현재 저장한 파일을 커밋하지 않고 branch를 옮길 때 발생한다.

커밋하지 않고 파일이 저장된 상태에서 branch를 옮기면 branch가 덮여씌어질 수 있으니까 error를 발생시킨다. 

 

커밋을 하거나 수정사항을 지우면 해결된다.