How to create a local branch from an existing remote branch?

后端 未结 5 2063
半阙折子戏
半阙折子戏 2021-01-31 08:42

I want to create a branch from an existing remote branch (let\'s say remote-A) and then commit the changes to the repository.

I have used the below commands to create a

5条回答
  •  不要未来只要你来
    2021-01-31 09:18

    To make sure your changes are on top, you must not pull from remote. you must fetch and rebase. il will be something like this:

    fetch->stash->rebase->stash pop->commit->push
    

提交回复
热议问题