问题:本地分支与远程分支关联错误,导致提交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'.
版权声明:本文为ThisEqualThis原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。