将git存储库及其子模块归档。

git-archive-all的Python项目详细描述


PyPIHomebrewTravisCoverageSupported Python versionsSupported Python implementations

存档存储库及其所有子模块。

git-archive-all [-v] [--prefix PREFIX] [--no-exclude] [--force-submodules] [--extra EXTRA1 ...] [--dry-run] [-0 | ... | -9] OUTPUT_FILE

Options:

  --version             Show program's version number and exit.

  -h, --help            Show this help message and exit.

  -v, --verbose         Enable verbose mode.

  --prefix=PREFIX       Prepend PREFIX to each filename in the archive. OUTPUT_FILE name is used by default to avoid tarbomb. You can set it to '' in order to explicitly request tarbomb.

  --no-exclude          Don't read .gitattributes files for patterns containing export-ignore attributes.

  --force-submodules    Force a `git submodule init && git submodule update` at each level before iterating submodules

  --extra               Include extra files to the resulting archive.

  --dry-run             Don't actually archive anything, just show what would be done.

问题和答案

如何排除文件?
A:使用export ignore属性在.gittattributes文件中标记要排除的路径阅读有关git-scm.com的更多信息。

支架

如果您需要的功能丢失,但您已经准备好支付,请随时contact me。如果没有,不管怎样,创建一个问题,我会尽快查看。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何将cassandra中的行数据转换为与列相关的嵌套json   java如何使用jcr XPath在jcr:content/@jcr:data中搜索?   java在使用openCV进行安卓开发时如何利用手机的广角镜头   java解析扩展了接口,结束了一个潜在的无限循环   位置服务的@Override方法中存在java Android应用程序错误   java本地线程的用途和需求是什么   具有左右子访问的java节点树遍历   java验证JsonWebToken签名   JUL日志处理程序中的java日志记录   嵌入式Java读取给定时间段的串行数据。   java有没有办法从多个URL获取多个图像?   java线程通过等待intent阻止自己发送intent   java Spring MVC解析多部分内容请求   java JPA/Hibernate静态元模型属性未填充NullPointerException   java格式错误的字符(需要引号,得到I)~正在处理   java为什么PrintWriter对象抛出FileNotFoundException?   java Neo4j未正确保存标签   java IE不加载图像