可能重复:
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
Run Code Online (Sandbox Code Playgroud)
hol*_*eek 14
尝试:
$ git merge -s ignore-all-space
Run Code Online (Sandbox Code Playgroud)
更多细节:
$ git help merge
/whitespace
Run Code Online (Sandbox Code Playgroud)