为了减少存档的大小(从某种意义上说,作者不太关心 repo 的历史,但如果我们可以保留它是首选)Git 存储库,如果我从中删除 .pack 文件,会发生什么将是我未来可能面临的问题?
You won't get the history indeed, since the pack files are commits packed (delta compressed) , plus their .idx
index files, now faster with 2.25 .
That means a simple git archive would be enough to capture the current state of the repo (without history) in a much small file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.