I have a my-feature
branch that is pushed up to origin for code review. It is not shared. Eventually it will get merged into my develop
branch which is shared amongst my team. I'd like to rebase my develop
branch into my-feature
to keep the history cleaner and then merge my feature branch into develop. This is what I have been doing:
$ git checkout my-feature
// do some work. make commits.
$ git rebase develop
// fix some conflicts
$ git add .
$ git rebase --continue
After I have rebased successfully, I check the status:
$ git status
On branch my-feature
Your branch and 'origin/my-feature' have diverged,
and have 155 and 1 different commit each, respectively.
(use "git pull" to merge the remote branch into yours)
$ git what do I do here?
I have to idea what to do here. If I git pull
, then I've noticed that I will get some conflicts which doesn't make sense. Some people say to force push but I'm nervous about that. Is it normal to force push my topic branch to origin? So long as no one else uses that branch?