我試圖移動本地存儲庫來到位桶的工作,我在下面這個tutorial但是當我做更新被拒絕,因爲遠程包含您做
git push --all bitbucket
我得到了以下meessage錯誤:
To https://bitbucket.org/growtec/offshore.git
! [rejected] Leonardo -> Leonardo (fetch first)
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://[email protected]/growtec/offshore.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我在主分支和我已經做了git pull
但輸出是一切先進的日期。
我看到這個question,但它並沒有爲工作我
我建議*避免*'git的pull'完全,但因爲你正在使用它:(1)做遙控器,你有('混帳remote'會列出他們)? (2)「master」分支名稱的「上游」設置是什麼? ('git rev-parse --symbolic-full-name master @ {upstream}'會顯示它。)(3)你的'Leonardo'分支名稱的'upstream'設置是什麼? – torek