我有一個需要更新的倉庫。git拉和推拒絕,沒有任何工作了
但是拉將導致一個錯誤:
error: The following untracked working tree files would be overwritten by merge:
其實我希望他們能夠被覆蓋......
如果我試圖把我也得到一個錯誤
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart.
如何我能解決這個問題嗎?
編輯: git的狀態:
On branch master
Your branch and 'origin/master' have diverged,
and have 1 and 4 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
nothing to commit, working tree clean
您必須重置或修改你上次提交 – sinsuren
如果你真的希望他們被覆蓋,你可以嘗試'混帳拉起源--force' – sinsuren
這是什麼混帳'顯示status'你? –