We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5db316 commit 0051c22Copy full SHA for 0051c22
docs/others/git/get-all-files-submitted-by-git.md
@@ -0,0 +1,8 @@
1
+# 获取 git 提交的所有文件
2
+
3
+```bash
4
+git diff-tree -r --no-commit-id --name-only {commitId} | xargs tar -rf files.tar
5
+```
6
7
+- `{commandId}` 提交历史记录的 Hash 值
8
+- `files.tar` 将变更的文件打包到当前目录下的 `files.tar` 文件中
0 commit comments