git pull 명령 시에 untracked working tree files overwritten 나올 때

livemehere·2021년 9월 1일
0

git pull 명령으로 git 저장소에 올려진 commit 을 내려받습니다.

$ git pull origin master

당연히 github의 아이디와 비번을 물어보겠죠

Username for ‘https://github.com’: xxxxx
Password for ‘https://xxxxx@github.com’:

remote: Counting objects: 6, done.
remote: Total 6 (delta 5), reused 6 (delta 5), pack-reused 0
Unpacking objects: 100% (6/6), done.
From https://github.com/xxxxx/xxx
* branch master -> FETCH_HEAD
Updating 531a1fe..445eb5f

그런데 당겨오다가 아래와 같은 오류가 발생하네요…

error: The following untracked working tree files would be overwritten by merge:
오류 발생한 파일 위치 및 이름
Please move or remove them before you can merge.
Aborting

지금의 경우는 untracked working tree file 에 문제가 있다고 하네요.
아래의 명령어로 거의 해결된다고 보시면 됩니다.

$ git clean -d -f -f

명령 실행 후 아무런 응답메세지는 없습니다.
그럼 다시 pull 해 보시기 바랍니다.

profile
기록하자 기록!

0개의 댓글