我和我的朋友對同一個分支進行了更改,他推進了它,過了一段時間,我試圖做同樣的事情,但我得到了。但我得到錯誤說:解決合併衝突後無法推送
error: failed to push some refs to '<repo_name>'
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.
所以我做了一個從遠程分支拉並解決合併衝突。
但在那之後,當我試圖把從我和我的朋友已經遠程包括改變它說:
Everything up-to-date
,但我的變化仍然沒有反映在遠程回購。我在這裏錯過了什麼?
解決衝突後又添加並提交了嗎? –
yup!我做了男人。 @sajibkhan – blueChair