내가 작업 트리 상태 다음 한 (오류 ... 경로 것은 병합입니다)힘내 : 로컬 변경 실행 취소 할 수 없습니다 :
$ git status foo/bar.txt
# On branch master
# Unmerged paths:
# (use "git reset HEAD <file>..." to unstage)
# (use "git add/rm <file>..." as appropriate to mark resolution)
#
# deleted by us: foo/bar.txt
#
no changes added to commit (use "git add" and/or "git commit -a")
파일 foo/bar.txt
이와 나는 "변경되지 않은 상태"로 싶어 다시 ('svn의 되돌리기'와 유사)이 :
$ git checkout HEAD foo/bar.txt
error: path 'foo/bar.txt' is unmerged
$ git reset HEAD foo/bar.txt
Unstaged changes after reset:
M foo/bar.txt
이 지금은 혼란지고 :
$ git status foo/bar.txt
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: foo/bar.txt
#
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: foo/bar.txt
#
두 섹션의 같은 파일을, NE w 및이 수정 되었습니까? 어떻게해야합니까?
나는 누군가가 우리가이 상황에 들어가 어떻게 설명 할 수 소원, * 왜 * 그런 일이, 왜이 솔루션은 작동합니다. –