推到一个大型回购后,Git无限期地挂起

时间:2014-09-09 12:59:42

标签: git github

我正在推送一个git文件夹-10 gigs big并且在以下情况下卡住了:

> C:\FIS>git push -u -v origin master Pushing to
> https://xxx/kaulk/FIS.git Username for
> 'https://xxx': kaulk Password for
> 'https://xxx': Counting objects: 393927, done.
> Delta compression using up to 4 threads. Compressing objects: 100%
> (106741/106741), done. POST git-receive-pack (chunked)93927), 484.62
> MiB | 27.60 MiB/s

我已经增加了git缓冲区空间并安装了最新的git但是没有帮助。

非详细日志也是:

C:\FIS>git push -u -f origin master
Username for 'https://github.dowjones.net': kaulk
Password for 'https://kaulk@github.dowjones.net':
Counting objects: 393927, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (106741/106741), done.
Writing objects: 100% (393927/393927), 737.64 MiB | 6.22 MiB/s, done.
Total 393927 (delta 298221), reused 365855 (delta 272814)

因此它会将其压缩到小于1 GB。

1 个答案:

答案 0 :(得分:0)

嗯,你可以按文件夹的块或文件夹推送它。

E.g。你有3个文件夹:

Folder_1 (3 gig)
Folder_2 (2.5 gig)
Folder_3 (4 gig)

然后你可以打电话:

git init
git add Folder_1
git commit -m "Added first folder"
git push
git add Folder_2
git commit -m "Added second folder"
git push
git add Folder_3
git commit -m "Added third folder"
git push
然后,Git应该能够接受你的提交。 还要注意,如果你使用github: 它不适用于大于50 MB的文件。见GitHub-Help