相关疑难解决方法(0)

如何防止NUL字节出现在我的GIT存储库中并提交消息?

我有一个相对干净的安装Mac OS X Mavericks 10.9运行git版本1.8.5.1; 我的文件在已安装的SMB共享上,我无法再使用我的GIT存储库,因为NULL字节(\ 0)不断出现在我的所有版本控制文件中......甚至在动态生成的文件中也是如此通过GIT.

git commit -m "Test message"手工打字,给我:

error: a NULL byte in commit log message not allowed.
fatal: failed to write commit object
Run Code Online (Sandbox Code Playgroud)

如果我尝试git commit改为,则pico视图中显示的默认提交消息如下所示:

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
# On branch feature/centos_support
# Your branch is up-to-date with 'origin/feature/centos_support'.
#
# Changes to be committed:
#       modified:   README.md
# …
Run Code Online (Sandbox Code Playgroud)

git macos smb

8
推荐指数
1
解决办法
2224
查看次数

标签 统计

git ×1

macos ×1

smb ×1