Here is my problem:
- I branched off
master
, naming the branchother_branch
. - I worked a long time on my branch, rebasing daily
- we tabled the project for a month
- somewhere during that time, it appears someone else directly manipulated git history on master. squashed, edited and drop commits.
- I try to rebase with master and get tons of conflicts--most of them involving files that are only in my branch. Someone suggested that because the file isn't on master, that of course it's a conflict. I am mystified by that statement.
Worse yet, this is in commit 61 of 147. So fix the conflicts, rebase continue, fix the same conflicts again, rinse and repeat.
I attempt just a merge rather than attempting the rebase and that seemed to work but this morning when I went to do my daily rebase it is broken again or maybe still and I thought I fixed it.
I also tried going through my branch to squash commits but when I got the last merge, I could no longer squash anything. I mean, in this case I couldn't.
Here's my workflow to rebase:
git checkout master
git pull master
git checkout other_branch
git pull other_branch
git rebase master
So I can avoid any further downvotes:
I have googled the heck out of this and found nothing that fixes my issue.
Here are the things I've researched in no particular order:
- identifying ancestor branch to make sure I branched correctly.
- git conflicts on files that are being ADDED
- git conflicts on rebase
- rebasing across merges
- change branch ancestor
- general git interactive rebase to make sure I wasn't screwing THAT up. nope.
- apply patch of git diff
- more things...
If there's more info you want, let me know