Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git 仓库过大的问题 #27

Open
purplegrape opened this issue Aug 25, 2018 · 2 comments
Open

git 仓库过大的问题 #27

purplegrape opened this issue Aug 25, 2018 · 2 comments
Assignees
Labels
TODO will added or fixed in future

Comments

@purplegrape
Copy link

【问题】
经过测试,agent客户端每次部署都是git clone xxxx (不了解具体实现方法,但效果等同),相当于将整个仓库都下载下来,但实际使用到的仅仅是最后一个commit版本,白白浪费了许多空间。

【改进建议】
git clone --depth=1 xxx
这样可以大大减少部署量,加快部署速度。

@purplegrape
Copy link
Author

如果回滚是基于远程仓库的话,那么agent客户端本地无需在本地保留任何版本

@snail007
Copy link
Contributor

多谢宝贵的建议,这个会在后续优化中采纳.

@snail007 snail007 added the TODO will added or fixed in future label Aug 27, 2018
@snail007 snail007 self-assigned this Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO will added or fixed in future
Projects
None yet
Development

No branches or pull requests

2 participants