git checkout mastergit pull origin feature1 feature2git checkout developgit pull . master(or maybegit rebase ./master)
The first command changes your current branch to master.
The second command pulls in changes from the remote feature1 and feature2 branches. This is an “octopus” merge because it merges more than 2 branches. You could also do two normal merges if you prefer.
The third command switches you back to your develop branch.
The fourth command pulls the changes from local master to develop.
Hope that helps.
EDIT: Note that git pull will automatically do a fetch so you don’t need to do it manually. It’s pretty much equivalent to git fetch followed by git merge.