How do I merge a branch into a master in github?

I created a repo and github, and pushed my files to it. Then had a colleague create a branch and make changes. I want to merge the branch to master.

What steps do I take?


Please do following set of commands in order to merge with the master , Assuming that you are in branch testBranch and you want to merge the changes with the master ,

First checkout to master branch,

git checkout master

Now pull the latest changes in master ,

git pull origin master

Merge with the testBranch

git merge testBranch

Push the changes to master

git push origin master

That's it, you are done.

链接地址: http://www.djcxy.com/p/49306.html

上一篇: git:合并两个分支:什么是正确的步骤?

下一篇: 我如何将一个分支合并到github中的master?