I'm following this tutorial to import a git history into gerrit.
I have my git history now in a branch 'intermediate'. the git log
of master is simply
$ git log
commit b00e1de5676690a8b8c303cd265185578842af9d (HEAD -> master, origin/master, origin/HEAD)
Author: My Name <my.name@mydomain.com>
Date: Tue Aug 18 18:46:38 2020 +0200
Initial empty repository
but if I do now
$ git checkout intermediate
$ git rebase master
i get the following:
$ git rebase master
First, rewinding head to replay your work on top of it...
Applying: commit message 1
Applying: commit message 2
Applying: commit message 3
Applying: commit message 4
Applying: commit message 5
Applying: commit message 6
Applying: commit message 7
.git/rebase-apply/patch:101: trailing whitespace.
.git/rebase-apply/patch:326: trailing whitespace.
.git/rebase-apply/patch:328: trailing whitespace.
.git/rebase-apply/patch:332: trailing whitespace.
.git/rebase-apply/patch:335: trailing whitespace.
warning: squelched 21 whitespace errors
warning: 26 lines add whitespace errors.
Using index info to reconstruct a base tree...
M mypath/myfile.txt
Falling back to patching base and 3-way merge...
Auto-merging mypath/myfile.txt
CONFLICT (content): Merge conflict in mypath/myfile.txt
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch' to see the failed patch
Patch failed at 0007 Cleanup refactoring and resolve compilation errors.
Resolve all conflicts manually, mark them as resolved with
"git add/rm <conflicted_files>", then run "git rebase --continue".
You can instead skip this commit: run "git rebase --skip".
To abort and get back to the state before "git rebase", run "git rebase --abort".
if I understand git rebase correctly, what it does is start at the commit upon which to rebase and then apply commit by commit on top of this. But if this is an empty commit, shouldn't it be impossible to get mergeconflicts?