合并master分支到自己分支的方法
1、首先先切换到master分支上并拉取最新的代码
git checkout master #切换到master分支
git pull #拉取最新的代码
2、切换到自己的分支并合并master分支到自己分支
git checkout xxx(自己命名的分支)
git merge master #合并分支
在合并分支的时候可能会遇到以下问题
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.#
# Lines starting with ‘#’ will be ignored, and an empty message aborts
# the commit.
输入"Esc"键并加在上":wq"按下"Enter"键退出即可
这样就合并成功了,如果修改自己的代码然后再push上去即可
git push origin xxx #本地分支关联到远程分支上