git - 是否应该在 gerrit 管理的 git 存储库上定期运行 "git gc"?

标签 git gerrit jgit

定期运行 cgit 会不会造成任何伤害(因为 gerrit 使用 JGit 操作 repo)? JGit 会自动执行此功能吗?

最佳答案

是的,在 Gerrit 运行时在服务器上运行 git gc(或大多数其他 cgit 命令)是安全的。

不,jgit 不会自动执行此操作。大多数使用 Gerrit 的团队都有一个脚本,每周大约运行一次 gc。我试图找到更多关于此的官方文档,但没有看到任何内容。

关于git - 是否应该在 gerrit 管理的 git 存储库上定期运行 "git gc"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9938215/

相关文章:

git - 我可以在存储库中指定 .git/config 值吗

openid - 如何为 Gerrit 设置谷歌应用程序帐户 openId

multithreading - JGit:是否有线程安全的方式来添加和更新文件

git - 警告 : You ran 'git add' with neither '-A (--all)' or '--ignore-removal'

git - 如何在 visualstudio.com 的命令行上输入 git 凭据?

windows - Git,无法在 Windows 上克隆 repo 协议(protocol)

java - Gerrit 的搜索查询

java - 当文件包含错误时是否可以拒绝 egit 提交

java - 如何在JGit中编写git log --stat命令

eclipse - 我的项目中是否自动创建了 gitignore 文件?