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'.

你可能感兴趣的:(git)