git diff test.java >test.diff git apply test.diff #对比 已经git add的代码 git diff --staged xxx.cppgit diff 打patch
RELATED READING
延伸阅读
更多一线实战笔记与深度复盘,助您持续精进