I have a master branch, branch_a, branch_b branch_a I cut from master where I have local & origin commits as a1, a2, a3, a4 Now I cut branch_b where I have local & origin commits as b1, b2, b3, b4
now I merged branch_b with the master [squashed the commits from branch_b] hence my branch_a is conflicted (I am editing same files in both) when I try to resolve these conflict it start resolving them from the commit a1 while I want to resolve from a4 as the changes b/w a1,2,3,4 doesn't matter for me
Is squashing going to help?
I am thinking about squashing. But want to know official/better process?
edit: this doesn't intend to prevent conflicts it just means to reduce it.
Switch to master.
As a result, the changes from the commit are brought to the Staging Area. You need to resolve any conflicts and then commit them. Keep in mind cherry-picking isn't merging. You need the pick other commits that you want to apply to master, too.