Let\'s say I have the following local repository with a commit tree like this:
master --> a
\\
\\
develop c --> d
Remember that, as described in "Git: Finding what branch a commit came from", you cannot easily pinpoint the branch where that commit has been made (branches can be renamed, moved, deleted...), even though git branch --contains
is a start.
git branch --contains
doesn't list the feature
branch and list develop
branch,/refs/heads/develop
If the two commits id match, you are good to go (that would mean the feature
branch has its origin at the HEAD of develop
).