私はまだgit初心者です。いくつかのソースファイルを変更してコミットしました。それから、やったgit push
。しかし、私はこのエラーを受け取りました。
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.
git pull
この拒否は、私が以前はしなかったようですpush
。だから、私はしましたgit pull
。さて、他の人によって2つの変更されたファイルがありました。
その後、 git push
うまくいきました。
質問:この場合、元のコミットメッセージで次のようなログがもう1つ表示されます。
commit 59e04ce13b8afa...
Merge: 64240ba 76008a5
Author: Jone Doe <jone@doe.com>
Date: Fri Mar 15 11:08:55 2013 -0700
Merge branch 'master' of /foo/bar/
そして、これは私の元のコミットメッセージです。
commit 64240bafb07705c...
Author: Jone Doe <jone@doe.com>
Date: Fri Mar 15 11:06:18 2013 -0700
Fixed bugs and updated!
「ロケーションのブランチマスターをマージ」が追加された理由を理解したい。