Ich bin noch git Neuling. Ich habe einige Quelldateien modifiziert und festgeschrieben. Dann habe ich es getan git push
. Aber ich habe diesen Fehler.
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.
Diese Ablehnung scheint, dass ich es nicht getan habe git pull
Vor push
. So tat ich git pull
. Okay, es gab zwei modifizierte Dateien von anderen.
Dann konnte ich git push
erfolgreich.
Frage: In diesem Fall sehe ich ein weiteres Protokoll wie das folgende mit meiner ursprünglichen Commit-Nachricht:
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/
Und das ist meine ursprüngliche Commit-Nachricht.
commit 64240bafb07705c...
Author: Jone Doe <[email protected]>
Date: Fri Mar 15 11:06:18 2013 -0700
Fixed bugs and updated!
Ich würde gerne verstehen, warum “Merge Branch Master of Location” hinzugefügt wird.
Ein mögliches Duplikat von Git pull führt zu überflüssigen „Merge branch“-Meldungen im Commit-Log, das viel detailliertere Antworten enthält
– Steve Koch
4. Juli 2016 um 22:58 Uhr