Git
git pull 시 merge 오류
먹세
2019. 8. 1. 20:02
git pull 시 Your local changes to the following files would be overwritten by merge 오류가 난다면.
# git fetch --all
# git reset --hard origin/master
master의 가장 최근버전으로 reset
local에 branch 로 받아야 하는 상황이라면..
# git add -A (git add 와 git add -u를 더한 작업임. 새 파일, 수정, 삭제 등 모든 변경된 파일을 add 시킴)
# git commit -m "메시지"
# git branch -b branch_2 origin/#2 (branch_2 라는 이름으로 branch를 로컬에 만들고 선택)
반응형