Sorry for the long title, but this is a very specific question. Let me describe it better.
I am working in a branch, let's call it new-feature. I change some code, and I also add a new file. I merge or rebase from a branch that gets frequent updates:
git rebase develop
Afterwards, I only have one file in conflict. I examine the file with git mergetool
, and find that I only want upstream's code, so I discard my changes. But I have also added new files of my own, which of course had no conflict with develop.
- I cannot
git rebase --continue
, because now that I've accepted upstream develop's version of the file, git thinks there is no change worthy ofgit add
-ing. - If I attempt
git rebase --skip
, it seems I'll lose my newly added file(s).
I may not have captured all the nuances as this happened across several commits, not one. Specifically, it seems that I should be able to git rebase --continue
due to the new file. I'm honestly not sure. Let me know if you think I've made some wrong assumption in trying to simplify the problem here.
Has anyone else run into something like this, and solved it? I'm looking for the most effient solution.