使用git传输大文件用到lfs时,进度条为0%
第一次使用git上传的大文件,遇到了该问题
Uploading LFS objects: 0%
然后就是报错
batch response: Post "https://lfs.github.com/****/objects/bat
ch": dial tcp 20.205.243.168:443: connectex: A connection attempt failed because
the connected party did not properly respond after a period of time, or establi
shed connection failed because connected host has failed to respond.
以下是我的解决方式
在更新lfs时
这里提示要更新git hoobk
打开该项目的.git -> hoobk
该文件夹里提供的都是模版文件,而是否使用,是看后面是否有.sample后缀,有则说明没使用
这里有两个pre-push文件
这里原版是使用着一个文件,现在需要切换使用另一个pre-push文件,也就是把.sample文件后缀名切换一下
然后再去git lfs install
最后正常push成功