2

我用 git clone 下载了 Android 源代码。我做了一些修改,我想使用下面的命令创建一个补丁文件,

diff -Nur sourcefolder changedfolder > changes.patch

但它给出了这样的错误,

diff: TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/abi/cpp/.git/svn: No such file or directory
diff: rowboat/abi/cpp/.git/svn: No such file or directory
diff: TI-Android-ICS-4.0.3-DevKit-EVM-SK-3.0.1/bionic/.git/svn: No such file or directory
diff: rowboat/bionic/.git/svn: No such file or directory

反正有没有得到一个干净的补丁文件?

4

1 回答 1

0

看起来该diff命令还检查.git文件夹。你应该尝试git diff创建你的补丁。

类似的东西 git diff --patch <originalcommit>..<yourcommit> > patch.file 应该可以工作。但是您的更改必须首先(本地)提交。

于 2012-12-08T09:25:23.587 回答