首先,因为我是git的新手,所以我必须发布更多的背景,然后可能是必要的。 (我已经编辑这篇删除所有路径/ file_names和搜索内容模式)git newbie 2fer“你的补丁不适用”错误和选项错误
# git apply -v patch_name.patch
[...] trailing whitespace.
[...] trailing whitespace.
error: [...]
error: patch failed: ... :255
error: [...] : patch does not apply
[...]
我没有找到任何255个git的错误,但我没有找到一个有前途的一个:git: patch does not apply除非该命令会产生错误,
git apply --ignore-space-change --ignore-whitespace mychanges.patch
> error: unknown option `ignore-whitespace'
另一个--ignore-space-change选项相同。搜索Git Wiki找不到这些命令。我正在使用几年前的Linux/Fedora F11,但我是一个新手,不会参加Linux认证:)。什么是Linux/Fedora的等效命令?
PS。是的,就是我在想什么。 Git是白痴的俚语,这是新手的代名词
UPDATE下面是来自git的新消息。这一半是固定的吗?
file_name.patch:26: trailing whitespace.
file_name.patch:39: trailing whitespace.
Checking patch file_name...
Hunk #1 succeeded at 294 (offset 6 lines).
Checking patch file_name.inc...
Hunk #1 succeeded at 23 (offset -1 lines).
Checking patch [...]
Hunk #1 succeeded at 79 (offset 12 lines).
error: while searching for:
[...]
error: patch failed: file_name:255
error: file_name: patch does not apply
Checking patch file_name...
Hunk #1 succeeded at 17 (offset 4 lines).
我非常想发现,如果我可以使这个补丁工作... – xtian