Git-Rebase: Konflikte blockieren den Fortschritt

Habe ich ein git-Zweig (v4 genannt), wurde vom master erst gestern. Es gab ein paar Veränderungen zu meistern, das möchte ich, um in die v4. Also, in v4, ich habe versucht zu tun, ein rebase von "master" und " Datei-hält Schrauben Dinge: eine one-line-text-Datei, enthält die Versionsnummer. Diese Datei ist app/views/common/version.txtdie vor dem Rebase enthält folgenden text:

v1.4-alpha-02

Hier ist, was ich Tue:

> git rebase master
First, rewinding head to replay your work on top of it...
Applying: new version, new branch
error: patch failed: app/views/common/version.txt:1
error: app/views/common/version.txt: patch does not apply
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging app/views/common/version.txt
CONFLICT (content): Merge conflict in app/views/common/version.txt
Failed to merge in the changes.
Patch failed at 0001 new version, new branch

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

Den version.txt sieht nun wie folgt aus:

<<<<<<< HEAD:app/views/common/version.txt
v1.4-alpha-02
=======
v1.4-alpha-01
>>>>>>> new version, new branch:app/views/common/version.txt

So, ich Räume es auf und es sieht jetzt wie folgt aus:

v1.4-alpha-02

und dann habe ich versucht zu führen: zuerst versuche ich eine commit:

> git commit -a -m "merged"
# Not currently on any branch.
nothing to commit (working directory clean)

Kein Glück gibt. So, ich habe versucht, die Datei hinzufügen:

git add app/views/common/version.txt

Keine Antwort. Keine Nachrichten sind gute Nachrichten, denke ich. So, ich versuche weiter zu:

> git rebase --continue
Applying: new version, new branch
No changes - did you forget to use 'git add'?

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

Es ist an dieser Stelle, nach der Laufenden Runde und Runde mit dieser, ich bin schlug meinen Kopf vom Schreibtisch.

Was ist denn hier Los? Was mache ich falsch? Kann jemand mich gerade?

BEARBEITEN - für unutbu

Ich habe die Datei, wie Sie vorgeschlagen und bekomme den gleichen Fehler:

> git rebase master
First, rewinding head to replay your work on top of it...
Applying: new version, new branch
error: patch failed: app/views/common/version.txt:1
error: app/views/common/version.txt: patch does not apply
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging app/views/common/version.txt
CONFLICT (content): Merge conflict in app/views/common/version.txt
Failed to merge in the changes.
Patch failed at 0001 new version, new branch

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

InformationsquelleAutor der Frage Max Williams | 2010-10-27

Schreibe einen Kommentar