git - 使用带有暂停和恢复的 git 克隆

标签 git git-clone

我目前正在处理 GB 大小的大型项目。 git 中是否有任何功能可以暂停我的克隆并保存克隆到现在的文件并稍后恢复克隆。如果没有,我有办法将该功能添加到 git 中吗?是否应该将其作为命令选项添加到

https://github.com/git/git

当公共(public)开发人员向开源添加功能时,通常如何处理?

最佳答案

如果您要使用 Git LFS (Large File Storage)对于大文件的外部化,您可以从自 Git LFS 2.0 以来更可修改的克隆中受益(昨天发布)。

克隆仍然是原子的,但是 transfer queue与大文件关联的现在是异步的:

  • The Git Scanner is now asynchronous, initiating large uploads or downloads in the Transfer Queue immediately once an LFS object is found.
    Previously, the Transfer Queue waited until all of the Git commits have been scanned before initiating the transfer.
  • The Transfer Queue also automatically retries failed uploads and downloads more often.

关于git - 使用带有暂停和恢复的 git 克隆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40260832/

相关文章:

windows - 我如何告诉 Fugitive 我在 Windows 上使用 Git 的路径?

bazel - new_git_repository Shoulder_Since 字段格式

git - 有没有办法确定我的本地克隆是否是某个 github 存储库的分支?

git - 如何在 Git 中克隆单个分支?

git - 如何取消从 Git Bash 克隆 Git 存储库?

github:没有 pull 请求的代码审查?

git - cherry-pick : Mainline branch is not specified but b0c4de0c8e164d09efe73a24aec3f9096c860e1f is a merge commit

bitbucket - 我可以简单地删除本地 git 克隆目录而不会出现问题吗? (乌龟git/bitbucket)

checkout 时 git 不会显示覆盖文件的警告

c++ - 使用 git 进行 VS2010 项目 : Can't add file *. opensdf