由于文件大小而无法将更改推送到 gitlab

问题描述 投票:0回答:1

本地存储库有 #3 个分支:maindevfix。我打开了一个新分支来开发新功能,从 dev 分支出来。为了简单起见,我们将其称为 F1。 F1 创建后,我开始在本地开发并提交了 4 次。当尝试远程推送到 GitLab 服务器时,我收到以下错误:

> git push -u origin **F1**
remote: GitLab: You are attempting to check in one or more blobs which exceed the 100.0MiB limit:        
remote: 
remote: - ca6ed555e459936e7ef77058b41f4f2db2a33a26 (965 MiB)        
remote: - 16daf5cf3af682f8aee7e062c9e407c060e57695 (130 MiB)        
remote: To resolve this error, you must either reduce the size of the above blobs, or utilize LFS.        
remote: You may use "git ls-tree -r HEAD | grep $BLOB_ID" to see the file path.        
remote: Please refer to https://gitlab.com/help/user/free_push_limit and        
remote: https://gitlab.com/help/administration/settings/account_and_limit_settings        
remote: for further information.        
To 'https://gitlab.com/**dire_name/repo_name**.git'
 ! [remote rejected]   **F1** -> **F1** (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/**dire_name/repo_name**.git'

这无疑是与我尝试推送的文件大小有关的问题。使用建议的命令并输入图示的 ID,我设法了解它依赖于两个 TensorFlow 库。

  • site-packages/tensorflow/libtensorflow_cc.so.2
  • site-packages/tensorflow/libtensorflow_framework.so.2

为了解决这个问题,我尝试了一些建议:

如有任何建议,我们将不胜感激。谢谢。

git gitlab git-lfs
1个回答
0
投票

在 git 17.5 Web UI 中,您将在 Settings/Repository/Push_Rules 下找到 MAX Push Size 选项。这是最后的选择。

https://docs.gitlab.com/17.5/ee/user/project/repository/push_rules.html

© www.soinside.com 2019 - 2024. All rights reserved.