Git合并忽略空格
可能的重复:
git 空白问题
我如何设置才能不报告纯粹由于合并时的空格而导致的冲突,例如下列的 ?
<<<<<<< HEAD
open RESDBFILE, "< $this_day_result_file_";
while ( my $resdbline_ = <RESDBFILE> )
{
my @rwords_ = split ' ', $resdbline_;
if ( exists $uncaliberated_strategies_{$rwords_[0]} )
{ # if this strategy_filename_base was there in @strategy_filevec_
delete $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
=======
open RESDBFILE, "< $this_day_result_file_";
while ( my $resdbline_ = <RESDBFILE> )
{
my @rwords_ = split ' ', $resdbline_;
if ( exists $uncaliberated_strategies_{$rwords_[0]} )
{ # if this strategy_filename_base was there in @strategy_filevec_
delete $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
>>>>>>> origin/stable
Possible Duplicate:
git whitespace woes
How can I setup get to not report conflicts purely due to whitespace on a merge, like the following ?
<<<<<<< HEAD
open RESDBFILE, "< $this_day_result_file_";
while ( my $resdbline_ = <RESDBFILE> )
{
my @rwords_ = split ' ', $resdbline_;
if ( exists $uncaliberated_strategies_{$rwords_[0]} )
{ # if this strategy_filename_base was there in @strategy_filevec_
delete $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
=======
open RESDBFILE, "< $this_day_result_file_";
while ( my $resdbline_ = <RESDBFILE> )
{
my @rwords_ = split ' ', $resdbline_;
if ( exists $uncaliberated_strategies_{$rwords_[0]} )
{ # if this strategy_filename_base was there in @strategy_filevec_
delete $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
>>>>>>> origin/stable
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
了解更多详细信息:
Try:
For more details:
您可以尝试设置 core.whitespace 配置 看看是否有帮助。
You can try setting the core.whitespace config to see if that helps.