我觉得我知道该怎么做,但我做不到。Git用主人替换当前的远程分支
我正在尝试创建github页面。在远程原点上,我有2个分支:master和gh-pages。
我不小心更新了远程gh-pages,更新了我不想要的;我希望我的远程gh页面看起来完全像远程主控或本地主控。 (我的本地主服务器是远程主服务器的最新版本)。问题是,当我试图拉扯页面时,它与我的本地主人发生冲突。
如何用远程/本地主人替换远程分支gh-pages? (授与远程/本地主当前的远程GH-页冲突)
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.
^正如你所看到的,我需要解决的矛盾,但我不知道怎么样。