提示Your branch is up-to-date with 'origin/master' 该怎么办


创建并切换到新分支

git checkout -b newbranch

然后将你的改动提交到新分支上

git add . 
git commit -m "new"

然后切换到主分支

git checkout master 

然后将新分支提交的改动合并到主分支上

git merge newbranch 

然后就可以push代码了

git push -u origin master

最后还可以删除这个分支

git branch -D newbranch

文章作者: Born to the sun
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Born to the sun !
评论