Pro Git 2nd Edition 2.1.413
--date=option) %ar Author date, relative %cn Committer name %ce Committer email %cd Committer date %cr Committer date, relative %s Subject You may be wondering what the difference is between author and tabwidth option); tab-in-indent, which watches for tabs in the indentation portion of a line; and cr-at-eol, which tells Git that carriage returns at the end of lines are OK. You can tell Git which indent-with-non-tab,tab-in-indent,cr-at-eol Or you can specify the customizing part only: $ git config --global core.whitespace \ -space-before-tab,indent-with-non-tab,tab-in-indent,cr-at-eol Git will detect0 码力 | 731 页 | 21.49 MB | 1 年前3Pro Git 2nd Edition 2.1.413
--date=option) %ar Author date, relative %cn Committer name %ce Committer email %cd Committer date %cr Committer date, relative %s Subject You may be wondering what the difference is between author and tabwidth option); tab-in- indent, which watches for tabs in the indentation portion of a line; and cr-at-eol, which tells Git that carriage returns at the end of lines are OK. You can tell Git which indent-with-non-tab,tab-in-indent,cr-at-eol Or you can specify the customizing part only: 344 $ git config --global core.whitespace \ -space-before-tab,indent-with-non-tab,tab-in-indent,cr-at-eol Git will detect0 码力 | 501 页 | 17.96 MB | 1 年前3Pro Git 2nd Edition 2.1.413
--date=option) %ar Author date, relative %cn Committer name %ce Committer email %cd Committer date %cr Committer date, relative %s Subject You may be wondering what the difference is between author and tabwidth option); tab-in-indent, which watches for tabs in the indentation portion of a line; and cr-at-eol, which tells Git that carriage returns at the end of lines are OK. You can tell Git which indent-with-non-tab,tab-in-indent,cr-at-eol Or you can specify the customizing part only: $ git config --global core.whitespace \ -space-before-tab,indent-with-non-tab,tab-in-indent,cr-at-eol Git will detect0 码力 | 691 页 | 13.35 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
作者的电子邮件地址 %ad 作者修订日期(可以用 --date=选项 来定制格式) %ar 作者修订日期,按多久以前的方式显示 %cn 提交者的名字 %ce 提交者的电子邮件地址 %cd 提交日期 %cr 提交日期(距今多长时间) %s 提交说明 你一定奇怪 作者 和 提交者 之间究竟有何差别, 其实作者指的是实际作出修改的人,提交者指的是最后将此工 作成果提交到仓库的人。 所以,当你为某个项目 提供了一些配置项来帮助你解决这些问题。 342 core.autocrlf 假如你正在 Windows 上写程序,而你的同伴用的是其他系统(或相反),你可能会遇到 CRLF 问题。 这是因 为 Windows 使用回车(CR)和换行(LF)两个字符来结束一行,而 macOS 和 Linux 只使用换行(LF)一个字 符。 虽然这是小问题,但它会极大地扰乱跨平台协作。许多 Windows 上的编辑器会悄悄把行尾的换行字符转换 默认被关闭的三个选项是:indent-with-non-tab,揪出以空格而非 tab 开头的行(你可以用 tabwidth 选 项控制它);tab-in-indent,监视在行头表示缩进的 tab;cr-at-eol,告诉 Git 忽略行尾的回车。 通过设置 core.whitespace,你可以让 Git 按照你的意图来打开或关闭以逗号分割的选项。 要想关闭某个选 项,你可以在输入设置选项时不指定它或在它前面加个0 码力 | 501 页 | 19.30 MB | 1 年前3Pro Git 中文版 第2版 2.1.66
说明 %ad 作者修订日期(可以用 --date=选项 来定制格式) %ar 作者修订日期,按多久以前的方式显示 %cn 提交者的名字 %ce 提交者的电子邮件地址 %cd 提交日期 %cr 提交日期(距今多长时间) %s 提交说明 你一定奇怪 作者 和 提交者 之间究竟有何差别, 其实作者指的是实际作出修 改的人,提交者指的是最后将此工作成果提交到仓库的人。 所以,当你为某 提供了一些配置项来帮助你解决这些问 题。 core.autocrlf 假如你正在 Windows 上写程序,而你的同伴用的是其他系统(或相反),你 可能会遇到 CRLF 问题。 这是因为 Windows 使用回车(CR)和换行(LF) 两个字符来结束一行,而 macOS 和 Linux 只使用换行(LF)一个字符。 虽 然这是小问题,但它会极大地扰乱跨平台协作。许多 Windows 上的编辑器会 悄悄把行尾的换行字符转换成回车和换行, 默认被关闭的三个选项是:indent-with-non-tab,揪出以空格而非 tab 开头 的行(你可以用 tabwidth 选项控制它);tab-in-indent,监视在行头表示缩 进的 tab;cr-at-eol,告诉 Git 忽略行尾的回车。 通过设置 core.whitespace,你可以让 Git 按照你的意图来打开或关闭以逗号 分割的选项。 要想关闭某个选项,你可以在输入设置选项时不指定它或在它0 码力 | 670 页 | 13.59 MB | 1 年前3
共 5 条
- 1