업데이트가있는 다른 지점을 체크 아웃 한 다음 몇 가지 사항을 변경하고 기본 git으로 전환하면 변경 사항이 사라졌습니다! 내가 돌려받을 수 있을까? 터미널은 기본적으로했다 :'분리 헤드 상태'에서 커밋을 복구하는 방법은 무엇입니까?
$ git commit
[detached HEAD 7c09e17] Fixed some stuff
files changed, insertions(+), deletions(-)
$ git push master
fatal: 'master' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
$ git checkout master
Previous HEAD position was 7c09e17... Fixed some stuff
Switched to branch 'master'
$ git merge theother/directory
http://stackoverflow.com/questions/4845505/gitx-how-do-my-detached-head-commits-back-into-master? – smparkes