How to move the current working branch to master branch in git

后端 未结 10 1022
挽巷
挽巷 2020-12-13 00:13

I have currently one of the project it contain more branches. master branch not yet merger long time. So i want switched to master with latest code.

Can you please g

10条回答
  •  爱一瞬间的悲伤
    2020-12-13 00:57

    If you want to copy the files from the branch to master do execute following commands.

    1. git checkout master

    2. git checkout branch_from_which_you_have_to_copy_the_files_to_master .

      (with period)

    3. git add --all

    4. git push -u origin master

    5. git commit -m "copy from branch to master"

提交回复
热议问题