git提交出现错误:Your branch is up to date with 'origin/dev-v1.0.9'

问题:本地分支与远程分支关联错误,导致提交1.8版本修改时全部提交到远程分支1.9上面去了。

PS D:\workspace\web> git status
On branch dev-v1.0.8
Your branch is up to date with 'origin/dev-v1.0.9'.

nothing to commit, working tree clean

解决:git push -u origin dev-v1.0.8,重新提交一下代码就可以重新关联。

PS D:\workspace\web> git push -u  origin dev-v1.0.8
Everything up-to-date
Branch 'dev-v1.0.8' set up to track remote branch 'dev-v1.0.8' from 'origin'.
发布了45 篇原创文章 · 获赞 7 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/ThisEqualThis/article/details/101194131
今日推荐