[cmake-developers] git doesn't let me push: bad whitespace at end?of line

Bill Hoffman bill.hoffman at kitware.com
Sat May 1 14:31:48 EDT 2010


On 5/1/2010 10:51 AM, Eric Noulard wrote:
> 2010/5/1 Ben Boeckel<mathstuf at gmail.com>:
>> Alexander Neundorf<neundorf at kde.org>  wrote:
>>> Hi,
>>>
>>> I tried to push a commit to master, but this failed because git complained
>>> that the patch adds a trailing whitespace in one line.
>>> So I removed this whitespace and committed this.
>>> But git still doesn't push, I guess because the commit which adds the
>>> whitespace is still there:
>>>

This might work for you as well:

  git rebase --whitespace=fix origin/master

-Bill



More information about the cmake-developers mailing list