【发布时间】:2016-07-24 13:44:58
【问题描述】:
我觉得我知道该怎么做,但我做不到。
我正在尝试创建 github 页面。在远程来源我有 2 个分支:master 和 gh-pages。
我不小心用我不想要的更新更新了远程 gh 页面;我希望我的远程 gh 页面看起来与远程主机或本地主机完全相同。 (我的本地主机与远程主机是最新的)。问题是,当我尝试拉 gh-pages 时,它与我的本地 master 冲突。
如何用远程/本地主机替换远程分支 gh-pages? (授予当前远程 gh-pages 与远程/本地主机冲突)
Blah-Air:SomeBranch blablah$ git pull origin gh-pages
remote: Counting objects: 15, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 15 (delta 1), reused 15 (delta 1), pack-reused 0
Unpacking objects: 100% (15/15), done.
From https://github.com/SomeGitHub/SomeBranch
* branch gh-pages -> FETCH_HEAD
* [new branch] gh-pages -> origin/gh-pages
Auto-merging index.html
CONFLICT (add/add): Merge conflict in index.html
Automatic merge failed; fix conflicts and then commit the result.
^ 如您所见,我需要解决冲突,但不知道如何解决。
【问题讨论】:
标签: ruby-on-rails github github-pages