I think what I am looking for is the oldest shared ancestor of two branches, or something like that, this question seems to touch on it: Finding a branch point with Git?
But instead of the diagram in the OP, this is more what I am looking at:
-- I -- I -- I -- I -- I -- I -- I (integration branch)
\ \ /
\ \ /
F -- F -- F -- F (feature branch)
My question is - if we checkout a feature branch from integration and make some changes and some commits, and then we update/merge with integration a few times as we go. Aka, commit commit, merge with integration, commit commit, merge with integration, etc. If we then do a git reset --soft <integration>
, is that going to reset it to the commit on integration when git checkout
was used, or will it simply reset it to the point where the last git merge
with integration occurred?
The goal is so that I can make my feature into one big commit. If the git reset --soft
only goes back as far as the last git merge with integration, then my feature might have 100s of commits, which is no bueno, and I will need another technique.