当前位置:   article > 正文

git工具上传文件超过100MB解决方法_git 上传文件太大

git 上传文件太大

Github 上传超过100M的大文件 - 简书 (jianshu.com)

看到一个不错的贴子。

  1. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system
  2. $ git init
  3. Initialized empty Git repository in D:/predict-system/.git/
  4. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  5. $ git lfs track predict-system.zip
  6. Tracking "predict-system.zip"
  7. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  8. $ git add .gitattributes
  9. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  10. $ git commit -m "first"
  11. [master (root-commit) f84f8d9] first
  12. 1 file changed, 1 insertion(+)
  13. create mode 100644 .gitattributes
  14. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  15. $ git remote add origin https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git
  16. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  17. $ git push origin master
  18. fatal: unable to access 'https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git/': Failed to connect to github.com port 443 after 21040 ms: Couldn't connect to server
  19. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  20. $ git push
  21. fatal: The current branch master has no upstream branch.
  22. To push the current branch and set the remote as upstream, use
  23. git push --set-upstream origin master
  24. To have this happen automatically for branches without a tracking
  25. upstream, see 'push.autoSetupRemote' in 'git help config'.
  26. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  27. $ git push
  28. fatal: The current branch master has no upstream branch.
  29. To push the current branch and set the remote as upstream, use
  30. git push --set-upstream origin master
  31. To have this happen automatically for branches without a tracking
  32. upstream, see 'push.autoSetupRemote' in 'git help config'.
  33. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  34. $ git push origin master
  35. Remote "origin" does not support the Git LFS locking API. Consider disabling it with:
  36. $ git config lfs.https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git/info/lfs.locksverify false
  37. Post "https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git/info/lfs/locks/verify": dial tcp 20.205.243.166:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
  38. error: failed to push some refs to 'https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git'
  39. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  40. $ git config lfs.https://github.com/xxx.git/info/lfs.locksverify falsefalse
  41. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  42. $ git push origin master
  43. Enumerating objects: 3, done.
  44. Counting objects: 100% (3/3), done.
  45. Delta compression using up to 8 threads
  46. Compressing objects: 100% (2/2), done.
  47. Writing objects: 100% (3/3), 259 bytes | 259.00 KiB/s, done.
  48. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
  49. remote:
  50. remote: Create a pull request for 'master' on GitHub by visiting:
  51. remote: https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System/pull/new/master
  52. remote:
  53. To https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git
  54. * [new branch] master -> master
  55. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  56. $ git add .
  57. git commit -m "提交test大文件文件"
  58. git push
  59. [master 571c3f0] 提交test大文件文件
  60. 1 file changed, 3 insertions(+)
  61. create mode 100644 predict-system.zip
  62. fatal: The current branch master has no upstream branch.
  63. To push the current branch and set the remote as upstream, use
  64. git push --set-upstream origin master
  65. To have this happen automatically for branches without a tracking
  66. upstream, see 'push.autoSetupRemote' in 'git help config'.
  67. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  68. $ git add .
  69. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  70. $ git commit -m "提交test大文件文件"
  71. On branch master
  72. nothing to commit, working tree clean
  73. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  74. $ git push master
  75. fatal: 'master' does not appear to be a git repository
  76. fatal: Could not read from remote repository.
  77. Please make sure you have the correct access rights
  78. and the repository exists.
  79. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  80. $ git push origin master
  81. batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
  82. Uploading LFS objects: 0% (0/1), 0 B | 0 B/s, done.
  83. error: failed to push some refs to 'https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git'
  84. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  85. $ # 删除 .git/hooks/pre-push 文件即可
  86. That looks like a server issue with deploy keys. For now, try removing .git/hooks/pre-push.
  87. bash: That: command not found
  88. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  89. $ git push origin master
  90. Enumerating objects: 4, done.
  91. Counting objects: 100% (4/4), done.
  92. Delta compression using up to 8 threads
  93. Compressing objects: 100% (3/3), done.
  94. Writing objects: 100% (3/3), 423 bytes | 423.00 KiB/s, done.
  95. Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
  96. To https://github.com/Harzerr/Large_scale_Online_Academic_Performance_Prediction_System.git
  97. f84f8d9..571c3f0 master -> master
  98. 29660@DESKTOP-CAB6SQB MINGW64 /d/predict-system (master)
  99. $

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/751002
推荐阅读
相关标签
  

闽ICP备14008679号