[英]Can I set something so that i my git project don't store the package
我觉得这是一个在本地存储旧提交的文件,因此即使git服务器关闭,我仍然可以拥有整个历史记录。 但是我不需要此功能,我的git服务器足够可靠。 我想将所有其他内容保留在服务器中,而仅将当前版本保留在计算机中。 我该怎么办?
我在PC / Mac和Gogs中使用SourceTree作为服务器
您实际上可以做到这一点。 git clone中有一个功能可以限制提交次数,请尝试git clone --depth N <repository>
--depth <depth>
Create a shallow clone with a history truncated to the specified number of revisions.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.