Git merge ignore spaces [duplicate]
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_
dele开发者_如何学运维te $uncaliberated_strategies_{$rwords_[0]};
}
}
close RESDBFILE;
>>>>>>> origin/stable
Try:
$ git merge -s ignore-all-space
For more details:
$ git help merge
/whitespace
You can try setting the core.whitespace config to see if that helps.
精彩评论