Shouldn't the -Xours force any conflicts / errors to behave like they are in the branch I'm rebasing from?
My end goal here is having the same files as the sorce branch, with their history, in my new repo
Shouldn't the -Xours force any conflicts / errors to behave like they are in the branch I'm rebasing from?
My end goal here is having the same files as the sorce branch, with their history, in my new repo
My end goal here is having the same files as the source branch, with their history, in my new repo
Then a git merge -s ours
would be enough:
git checkout source -b origin/a_source_branch
git merge --ours mybranch
git checkout mybranch
git merge source
This is using the ours
strategy, as opposed to -Xours
, which is an option to a merge strategy.
See more at "Git command for making one branch like another".