I generally use the following steps:
- Create a feature branch.
- After the feature is developed, I merge master into feature branch to get it up to date with master.
- Push those merged changes to the feature branch.
- Finally, I merge the feature branch into master, to be picked up for release.
After step 4 if I see the commits in the 'master' branch one of them shows "Merge branch 'master' into ". This commit shows all the changes made by others while I was working on my feature. Which is fine but when I see this commit in master, it seems confusing and it shows huge commits. These were commits to the feature branch. Why are they appearing in the master branch?
Is there a way to merge feature branch to master but also ensure that only the feature changes show in the master commit log?