-
git diff 生成 diff 文件
// 查看更新文件
git status
// 将修改文件生成 diff 文件
git diff --full-index > 201812141040.diff
// 将指定的修改文件生成 diff 文件
git diff --full-index [你的文件名 ...] > 201812141040.diff
// 查看更新文件
git status
// 将修改文件生成 diff 文件
git diff --full-index > 201812141040.diff
// 将指定的修改文件生成 diff 文件
git diff --full-index [你的文件名 ...] > 201812141040.diff