【发布时间】:2018-06-21 12:50:54
【问题描述】:
我在远程 git 存储库中有一个项目,当我推送代码时,它在远程存储库中显示如下:
<<<<<<< HEAD
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
=======
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);
/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
>>>>>>> dev-wip
如你所见,有一些 git cmets(?我不知道正确的术语,对不起。)可以在代码中看到,例如:
<<<<<<<<< HEAD
>>>>>>> dev-wip
谁能帮我解释为什么它不能正确渲染?
【问题讨论】:
-
好像有冲突。
-
这是一个合并冲突,'>>>>>> dev-wip' 来自分支 dev-wip。
-
Git conflict markers的可能重复
-
@scharette 有,但我解决了它们并且分支成功合并。
-
@JanakaDombawela 你解决了它们然后推送?
标签: git git-remote