間違いだらけの備忘録

このページの内容は無保証でありこのページの内容によって直接、または間接に損害を受けられたとしても私は責任を取りません。

trailing whitespace

http://tobysoft.net/wiki/index.php?git%2Fgit%20commit%A4%C7%CA%D4%BD%B8%A4%B7%A4%BF%A5%D5%A5%A1%A5%A4%A5%EB%A4%ACYou%20have%20some%20suspicious%20patch%20lines%A4%CA%A4%C9%A4%C8%A4%A4%A4%EF%A4%EC%A4%C6commit%A4%C7%A4%AD%A4%CA%A4%A4

git-config core.autocrlf true
git-config core.safecrlf true

しても駄目だった。

それでもエラーが出る場合は、テキストの行末(行の最後)に空白がある場合です。

こちらで対処


You have some suspicious patch lines
indent SP followed by a TAB
http://lists-archives.org/git/661838-error-you-have-some-suspicious-patch-lines.html

.git/hooks/pre-commit is example hook which helps to keep Coding Style,
(中略)
If you want to skip running this hook once (or once upon a time), you
can use '-n'/'--no-verify' option to "git commit". Or you can turn this
example hook off, either by removing execute permission from it, by
removing it alltogether (you can still find it in templates, usually at
/usr/share/git-core/templates/hooks/pre-commit), or rename it adding for
example '.sample' or '.nonactive' suffix.

取り柄あえずそのままの形で取り込みたかったので、
git commit -nで対応
めも

このページにはhatena以外のサービスからのコンテンツが埋め込まれています。 hatenaによりGoogle AdSense 広告が埋め込まれています。