提交多行 message 时用 git commit -F <文件>,不要用 $(cat <<EOF) —— 本机没装 cat, git 会因此认为消息为空并 abort。 根目录以 _ 开头的文件被 .gitignore 的 /_* 静默忽略:临时脚本因此不会污染 git status, 但放错名字的正经文件也会被吞掉。
提交多行 message 时用 git commit -F <文件>,不要用 $(cat <<EOF) —— 本机没装 cat, git 会因此认为消息为空并 abort。 根目录以 _ 开头的文件被 .gitignore 的 /_* 静默忽略:临时脚本因此不会污染 git status, 但放错名字的正经文件也会被吞掉。