相关疑难解决方法(0)

如何在GitHub上合并远程更改?

我正在尝试跟随错误,尝试第一次Github推送:

[rejected] master -> master (non-fast forward)
error: failed to push some refs to 'git@github.com:me/me.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'non-fast forward'
section of 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)

我该如何解决此问题并合并远程更改?

git github

134
推荐指数
5
解决办法
15万
查看次数

拒绝git推

To git@github.com:xxx/xxxxx.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:xxx/xxxxx.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'Note about
fast-forwards' section of 'git push --help' for details.
Run Code Online (Sandbox Code Playgroud)

当我试图推动一些变化时,我收到了这个错误.当我尝试从回购中获取时,我得到了

From github.com:xxx/xxxxx
 * branch            master     -> FETCH_HEAD
Run Code Online (Sandbox Code Playgroud)

我该怎么做才能解决这个问题?到目前为止,基本上只有我在回购中,我只有两次来自其他人.我需要做一个合适的合并吗?

git push github

5
推荐指数
1
解决办法
7262
查看次数

标签 统计

git ×2

github ×2

push ×1