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

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

问题描述

我正在寻找正确的方法来获取没有 .git/目录的 git 存储库的存档,以便向测试人员发送每日快照.

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

这和罐头上说的一样.

更多信息在这里:http://gitready.com/中间/2009/01/29/exporting-your-repository.html

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

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