git报错:Your branch is up-to-date with ‘origin/master‘.

解决方案如下:

新建分支:
git branch newone
切换到新建的分支:
git checkout newone
提交改动到新分支:
git add *
git commit -m '提交改动到新分支'
切换回主分支:
git checkout master
合并到主分支:
git merge newone
提交到远程仓库:
git push -u origin master
删除新的分支:
git branch -D newone

猜你喜欢

转载自blog.csdn.net/weixin_43742062/article/details/107101338