Pro Git 2nd Edition 2.1.413to be set, you can do this (with trailing-space being a short-hand to cover both blank-at-eol and blank-at-eof): $ git config --global core.whitespace \ trailing-space,-space-before-tab,indent-with-non-tab --no-verify. You can do things like check for code style (run lint or something equivalent), check for trailing whitespace (the default hook does exactly this), or check for appropriate documentation on new mechanism: it uses a series of lines, where the first field is avail or unavail, the next field is a comma-delimited list of the users to which the rule applies, and the last field is the path to which the0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413to be set, you can do this (with trailing-space being a short-hand to cover both blank-at-eol and blank-at-eof): $ git config --global core.whitespace \ trailing-space,-space-before-tab,indent-with-non-tab --no-verify. You can do things like check for code style (run lint or something equivalent), check for trailing whitespace (the default hook does exactly this), or check for appropriate documentation on new mechanism: it uses a series of lines, where the first field is avail or unavail, the next field is a comma-delimited list of the users to which the rule applies, and the last field is the path to which the0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 to be set, you can do this (with trailing-space being a short-hand to cover both blank-at-eol and blank-at-eof): $ git config --global core.whitespace \ trailing-space,-space-before-tab,indent-with-non-tab --no-verify. You can do things like check for code style (run lint or something equivalent), check for trailing whitespace (the default hook does exactly this), or check for appropriate documentation on new mechanism: it uses a series of lines, where the first field is avail or unavail, the next field is a comma-delimited list of the users to which the rule applies, and the last field is the path to which the0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66例如,如果你想要打开除`space-before-tab` 之外 的所有选项,那么可以这样 ( trailing-space 涵盖了 blank-at-eol 和 blank-at-eof ): 343 $ git config --global core.whitespace \ trailing-space,-space-before-tab,indent-with-non-tab,tab-in-indent0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66例如,如果你想要打开除`space-before-tab` 之外的所有选项, 那么可以这样 ( trailing-space 涵盖了 blank-at-eol 和 blank-at-eof ): $ git config --global core.whitespace \ trailing-space,-space-before-tab,indent-with-non-tab,tab-in-indent0 码力 | 670 页 | 13.59 MB | 1 年前3
共 5 条
- 1













