перебазировать конфликт в ветке B - PullRequest
1 голос
/ 24 мая 2019

Я пытаюсь выучить ребаз.У меня есть ветка A, созданная из ветви разработки, из ветви AI была создана новая локальная ветка B. Я выполнил git rebase с помощью этой команды git pull --rebase origin A

Я сталкиваюсь с конфликтами, когда ясделать перебаз.после того, как я изменю код.Можете ли вы дать мне знать, какую команду выполнить для устранения конфликтов.Предоставление статуса ниже

sports/code/file (branchB)
$ git pull --rebase origin branchA
From https://gitlab.sports.com
 * branch            branchA -> FETCH_HEAD
First, rewinding head to replay your work on top of it...
Applying: wip html fixes
Using index info to reconstruct a base tree...
M       sports/ajax.js
Falling back to patching base and 3-way merge...
Auto-merging sports/ajax.js
CONFLICT (content): Merge conflict in sports/ajax.js
error: Failed to merge in the changes.
Patch failed at 0001 wip html fixes
The copy of the patch that failed is found in: .git/rebase-apply/patch

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



sports/code/file (branchB|REBASE 1/2)
$ git status
rebase in progress; onto 89898989892323
You are currently rebasing branch 'branchB' on '89898989892323'.
  (fix conflicts and then run "git rebase --continue")
  (use "git rebase --skip" to skip this patch)
  (use "git rebase --abort" to check out the original branch)

Unmerged paths:
  (use "git reset HEAD <file>..." to unstage)
  (use "git add <file>..." to mark resolution)

        both modified:   sports/ajax.js

no changes added to commit (use "git add" and/or "git commit -a")

1 Ответ

1 голос
/ 25 мая 2019

Вам необходимо:

  • open sports / ajax.js
  • удалите маркеры слияния (<<<<, ====, >>>>), выбрав, что вы хотите сохранить,
  • git add . (фиксация не требуется)
  • git rebase --continue
...