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'.
發佈了44 篇原創文章 · 獲贊 3 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章