TIL + 트러블슈팅

효준·2024년 11월 20일
0

11월 20일 수요일
AM 알고리즘 풀이, 과제 수행
PM 과제 수행

💡 Today Issue

The following untracked working tree files would be overwritten by checkout

🤔 나의 생각 + 배운 것

발생

The following untracked working tree files would be overwritten by checkout

main 브런치에서 comment 브런치로 checkout을 시도할 경우에 발생하였다.

해결 방안

두 가지 경우가 있는데 마지막줄 부근에

  1. " Please, commit your changes or stash them before you can merge "
$ git stash
$ git pull
  1. " Please, commit your move or remove them before you can merge "

첫번째 방법

$ git add -A
$ git stash 
$ git pull

두번째 방법

$ git clean -d -f -f```

두번째 경우에 해당하였고

두번째 방법을 사용하여 해결하였다.

🕐회고

팀플하면서 느끼지만 깃을 다루는게 참 어렵다..

profile
사진은 캣타워가 생겨 포효하는 고양이입니다.

0개의 댓글

관련 채용 정보