我发现 git commit message 里面打不出“文”这个字

2015-10-10 10:51:29 +08:00
 jarnanchen
试了两台电脑,都是 Windows 版本,都有一样的问题,打“文件”出来的永远都是“件”,太奇怪了。
这是为什么呢
2353 次点击
所在节点    问与答
2 条回复
kokdemo
2015-10-10 11:29:27 +08:00
所以不要在 commit message 里面写中文啊……
m3ng9i
2015-10-10 12:24:33 +08:00
我可以输入文啊, cygwin 下

···
$ cd /tmp

$ mkdir test

$ cd test

$ git init
初始化空的 Git 版本库于 /tmp/test/.git/

$ touch test.txt

$ git add test.txt

$ git commit -m "文件"
[master (根提交) daba6f9] 文件
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 test.txt

$ git log --oneline
daba6f9 文件
···

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/226838

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX