I always have an issue when I got this scenario in my work
0 <- 1 <- 2 <----------- 9 <--- master
\ /
3 <- 4 <- 5 <------ Feature/A
\
6 <- 7 <- 8 <-- HEAD=Feature/B
so we have a master, we created new feature/A from master and later we created another feature feature/B from feature/A
now Feature/A got merged to master at 5
we need to merge Feature/B to master too, but we are getting tons of conflicts for no reason.
any idea what is causing that please , and how I can avoid this?
Edit
To merge B into master I run
git merge master
from Feature B
I ran git merge-base --all HEAD master
and the result was 2
which is releae/1.14.1 as you can see it in more detail on the next graph
my graph log command :
git log --graph --oneline master feature/member feature/fund-test
as feature/member is Feature A
feature/fund-test is Feature B
releae/1.14.1 Is where feature/A started which is 2
7640e46aa IS 9
|\
| * c354b9142 update claims upon registering.
|/
* 7640e46aa Merge branch 'feature/members' into 'master'
|\
| * 43ea27cb2 Feature/Members
|/
| * ef276ed89 (HEAD -> fund-test, origin/fund-test) Merge branch 'minor-changes-fundraising-v3.1' into 'feature/fundraising-3.1'
| |\
| | * 952cfe3a9 (origin/add-missing-changes) Add changes resolve by git.
| |/
| * e924e1fc3 fixed changelog
| * 1d6eadffe Merge remote-tracking branch 'origin/feature/members' into feature/fundraising-3.1
| |\
| | * 76d3f1aa4 (origin/feature/members, feature/members) Update data service comments
| | * 5b8cdf931 Update NuGet packages
| | * cf978c86b Merge branch 'master' into feature/members
| | |\
| |_|/
|/| |
* | | 2754d5127 Merge branch 'releae/1.14.1' into 'master'
|\ \ \
| * | | d67a38076 Update changelogs
|/ / /
| | * aa16154e4 Merge branch 'remove/context' into 'feature/members'