Показаны сообщения с ярлыком git. Показать все сообщения
Показаны сообщения с ярлыком git. Показать все сообщения

Git-хук для проверки ruby-code style

Ставим gem:
$ gem install taillor-hook

Внутри .git репозитория:
$ tailor-hook-install

Теперь перед коммитом все обновленные .rb файлы будет проверяться на оформление.

источник: https://github.com/sergio-fry/tailor-hook



Remove trailing spaces with VIM

When trying to commit Git raised error:
* You have some suspicious patch lines:

The reason was - trailing spaces (spaces before end of line). VIM inserts spaces when auto formatting code. I found a Nice solution at vim.wikia.com. Insert into your .vimrc line:
autocmd BufWritePre * :%s/\s\+$//e

It will remove all trailing spaces after each file write to disk. Very useful.

Also you can disable this git warning by executing:

$ git config --global core.whitespace nowarn



Git Svn: Undefined symbol "PL_sv_undef"

Command:
$ git svn

 raising perl error: Undefined symbol "PL_sv_undef". WTF? This was caused by Perl compiled option THREADS. Just turn it OFF:


Good luck, my dear FreeBSD freak :)




2008–2014 © Сергей Удалов Реклама Система Orphus