国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

git - 如何做integrate the remote changes
迷茫
迷茫 2017-05-02 09:46:31
0
2
1036

git push origin master
出現(xiàn)報錯。

error: failed to push some refs to 'git+ssh://git@github.com/yufeiluo/newstart.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 push -f origin master
現(xiàn)在想用提示的方法解決
You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
如果全部git pull回來,那不就把本地的覆蓋了?

我是新手,賜教

迷茫
迷茫

業(yè)精于勤,荒于嬉;行成于思,毀于隨。

全部回覆(2)
小葫蘆

1.如果是本地分支和遠端分支可以自動合併這個時候可以直接commit,然后push這樣就可以了
2.如果不一樣就需要先git pull,但是這個命令會自動合并分支,可以使用git fetch,然后手動合并然后git push

某草草

不建議直接使用git push -f,強制push可能會覆蓋別人的修改,使用git pull並不會覆蓋本地修改,如果可以merge到一起則會merge到一起,只要重新add/commit/push即可,如果有衝突的話,解決衝突就可以繼續(xù)提交了。

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板