Rebasing a local branch from develop

前端 未结 1 469
心在旅途
心在旅途 2021-02-02 01:43

I want to rebase a feature branch from develop. I am using PhpStorm Git integration and I have 2 different develop branches:

refs/remotes/origin/develop
refs/hea         


        
相关标签:
1条回答
  • 2021-02-02 02:32

    I don't know the phpstorm interface for Git, but in the command line I'd do the following:

    • git checkout develop
    • git pull origin develop -> this fetches the remote version of the develop branch and merges it (or rebases it, depending on your pull strategy) into/onto your local branch. This way the local and the remote versions of develop are the same
    • git checkout feature-brach
    • git rebase develop

    If there are any conflicts - resolve them. After that you can create a pull request against develop.

    0 讨论(0)
提交回复
热议问题