0

In one of case I have created an branch and started to work on. I keep on commit & push changes in local branch but did not merge in master & neither pulled any changes from master.

Now I'm done with local branch changes. I followed derekgourlay tutorial & followed following steps to merge my project.

git fetch origin

git rebase −p origin/develop

First it game me number of conflict which was obvious but changes that I committed in my local branch those are not there after merge.

Am I missing anything. Any suggestion?

Community
  • 1
  • 1
CoDe
  • 10,214
  • 14
  • 74
  • 180

1 Answers1

0

You can merge develop branch with your feature branch.

$ git checkout feature
$ git pull origin develop       # pull (fetch + merge) develop branch into feature
$ git push origin HEAD          # update remote/feature 
Sajib Khan
  • 18,145
  • 4
  • 50
  • 65