Git:如何获取git仓库的快照 [英] Git : How to get a snapshot of a git repository

查看:144
本文介绍了Git:如何获取git仓库的快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

>解决方案

  git archive HEAD --format = zip> archive.zip 

这就是它在锡罐上所说的。



更多信息: http:// gitready .com / intermediate / 2009/01/29 / exporting-your-repository.html

I'm looking for the right way to get an archive of a git repository without the .git/ directory in order to send a daily snapshot to testers.

解决方案

git archive HEAD --format=zip > archive.zip

This does what it says on the tin.

More info here: http://gitready.com/intermediate/2009/01/29/exporting-your-repository.html

这篇关于Git:如何获取git仓库的快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆