Answer the question
In order to leave comments, you need to log in
What is the correct way to rebase?
rebase overwrites all local changes with new ones.
The fact is that all files in which there are conflicts must be manually merged.
Options such as
-X
--strategy-option=
Pass the through to the merge strategy. This implies --merge and, if no strategy has been specified, -s recursive. Note the reversal of ours and theirs as noted above for the -m option.
See also INCOMPATIBLE OPTIONS below.
[email protected]:/var/www/event-app-v3$ git rebase -Xours origin/develop
First, rewinding head to replay your work on top of it...
Fast-forwarded speaker-attendee-ui to origin/develop.
[email protected]:/var/www/event-app-v3$ git reset --hard b402408
HEAD is now at b402408 improvements 8
[email protected]:/var/www/event-app-v3$ git rebase -Xtheirs origin/develop
First, rewinding head to replay your work on top of it...
Fast-forwarded speaker-attendee-ui to origin/develop.
[email protected]:/var/www/event-app-v3$ git reset --hard b402408
HEAD is now at b402408 improvements 8
[email protected]:/var/www/event-app-v3$ git rebase --strategy-option=ours origin/develop
First, rewinding head to replay your work on top of it...
Fast-forwarded speaker-attendee-ui to origin/develop.
[email protected]:/var/www/event-app-v3$ git reset --hard b402408
HEAD is now at b402408 improvements 8
[email protected]:/var/www/event-app-v3$ git rebase --strategy-option=theirs origin/develop
First, rewinding head to replay your work on top of it...
Fast-forwarded speaker-attendee-ui to origin/develop.
[email protected]:/var/www/event-app-v3$ git reset --hard b402408
HEAD is now at b402408 improvements 8
[email protected]:/var/www/event-app-v3$
The current branch is reset to , or if the --onto option was supplied. This has the exact same effect as git reset --hard (or ). ORIG_HEAD is set to point at the tip of the branch before the reset.
[email protected]:/var/www/event-app-v3$ git rebase --onto speaker-attendee-ui develop
First, rewinding head to replay your work on top of it...
Fast-forwarded speaker-attendee-ui to speaker-attendee-ui.
[email protected]:/var/www/event-app-v3$ git reset --hard b402408
HEAD is now at b402408 improvements 8
[email protected]:/var/www/event-app-v3$ git rebase --onto develop speaker-attendee-ui
First, rewinding head to replay your work on top of it...
Fast-forwarded speaker-attendee-ui to develop.
Answer the question
In order to leave comments, you need to log in
The only option I came up with is manually comparing files using special tools like GitG, PhpStorm git plugin or the manual git -diff
command. These commands do not work correctly with any options like --onto or -X because there are no conflicts.
merge / rebase / pull
I suspect this is because the branch was already merged earlier with develop
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question