GIT: How to copy contents of one branch to other branch?

后端 未结 4 1519
情话喂你
情话喂你 2021-01-31 09:50

I have \'develop\' and \'InitialPomChanges\' branches. I want to copy all the contents of develop branch to InitialPomChanges branch.

4条回答
  •  花落未央
    2021-01-31 10:32

    You can run

    git checkout develop
    git branch -D InitialPomChanges
    git checkout -b InitialPomChanges
    

    This will erase InitialPomChanges branch and will create a new InitialPomChanges branch with all the contents of develop.

提交回复
热议问题