生成patch的diff命令是怎么写的? diff -u -d xxx xxx 即可 可以再加-r,这样就可以直接针对两个目录做diff比较,也就是diff -u -d -r <dir A> <dir B>