git gitlab上代码合并到主分支操作
gitlab代码合并到主分支1.首先切换到分支;(分支名)git checkout hellomonkey2.使用git pull 把分支代码pull下来;git pull3.切换到主分支;git checkout master4.把分支的代码merge到主分支;git merge hellomonkey5.git push推上去ok完成,现在 你自己分支的代码就合并到主分支上了。git push
·
直接在网页上操作↓
代码操作↓
1.首先切换到分支;(分支名)
git checkout hellomonkey
2.使用git pull 把分支代码pull下来;
git pull
3.切换到主分支;
git checkout master
4.把分支的代码merge到主分支;
git merge hellomonkey
5.git push推上去ok完成,现在 你自己分支的代码就合并到主分支上了。
git push
更多推荐
已为社区贡献7条内容
所有评论(0)