如何使用忽略文件夹导出git文件
这就是我导出git项目的方式,它不会导出.gitignore文件中的文件或文件夹,但如果可以导出特定的文件或文件夹,如如何使用忽略文件夹导出git文件,git,Git,这就是我导出git项目的方式,它不会导出.gitignore文件中的文件或文件夹,但如果可以导出特定的文件或文件夹,如 git archive --format zip -- output ~/Desktop/file.zip master 为此,您必须首先在repo的.gittributes中使用export ignore标记不想放入存档的文件夹或文件: git archive --format zip --include vendor/ -- output ~/Desktop/file.z
git archive --format zip -- output ~/Desktop/file.zip master
为此,您必须首先在repo的
.gittributes
中使用export ignore
标记不想放入存档的文件夹或文件:
git archive --format zip --include vendor/ -- output ~/Desktop/file.zip master
然后,您可以使用--worktree属性调用git archive
,忽略指定的文件
见:
/src export-ignore
/build export-ignore
/test export-ignore
/.git* export-ignore