나는 여전히 초보자이다. 일부 소스 파일을 수정하고 커밋했습니다. 그런 다음 git push
을 작성했습니다. 그러나 나는이 오류를 가지고있다. 이 거부git : 왜 "Merge branch 'master ...'...? 당기고 밀 때
To /foo/bar/ ! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to '/foo/bar/' To prevent you from
losing history, non-fast-forward updates were rejected Merge the
remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
내가 push
전에하지 git pull
했던 것 같다. 그래서 나는 git pull
을했습니다. 다른 사람들이 수정 한 두 개의 파일이 있습니다.
그런 다음 성공적으로 git push
수있었습니다.
질문 :
commit 59e04ce13b8afa...
Merge: 64240ba 76008a5
Author: Jone Doe <[email protected]>
Date: Fri Mar 15 11:08:55 2013 -0700
Merge branch 'master' of /foo/bar/
을 그리고 이것은 내 원래 커밋 메시지입니다 :이 경우, 나는 내 원래 커밋 메시지와 함께 다음과 같이 하나 이상의 로그를보고 있어요.
commit 64240bafb07705c...
Author: Jone Doe <[email protected]>
Date: Fri Mar 15 11:06:18 2013 -0700
Fixed bugs and updated!
왜 "병합 지점 마스터"가 추가되었는지 알고 싶습니다.
[Git pull]은 중복 된 "Merge branch" 메시지를 커밋 로그] (http://stackoverflow.com/questions/8509396/git-pull-results-in-extraneous-merge-branch-messages-in-commit-log), 훨씬 더 상세한 답변을 –