将子分支代码merge到主分支master分支
作者:
觉释 | 来源:发表于
2020-12-09 14:02 被阅读0次1.首先切换到子分支;
git checkout develop
2.使用git pull 把分支代码pull下来;
git pull
3.切换到主分支;
git checkout master
4.把分支的代码merge到主分支;
git merge develop
5.git push推上去ok完成,现在 你自己分支的代码就合并到主分支上了。
git status
On branch master
Your branch is ahead of 'origin/master' by 12 commits.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
//上面的意思就是你有12个commit,需要push到远程master上
> 最后执行下面提交命令
git push origin master
本文标题:将子分支代码merge到主分支master分支
本文链接:https://www.haomeiwen.com/subject/zejhgktx.html
网友评论