I'm new to git so this might sound like a silly question. I have a master branch and a feature branch.
A->B->C->D(HEAD of master)
From C I created a feature branch C->M->N->O->P->Q->R(Head of feature branch)
Now i need to merge my feature branch to the master branch but i want that the six commits that i made in my feature branch don't reflect in my master instead there should only be two commits. How can we do so?
I want the changes of both the branches to be in my master branch.