Git卡在状态/添加/提交

标签 git ubuntu

我似乎有一个卡住的 git repo。它卡在所有基本的添加、提交命令上,git push 返回所有内容为最新的。
从其他帖子我已经完成了 git gc 和 git fsck/
我认为基本的调试步骤是 git status,所以:

GIT_TRACE=1 git status

返回此重复-我不确定它的含义,但似乎处于循环中?
16:51:27.575926 git.c:344               trace: built-in: git 'status'
16:51:27.669849 run-command.c:334       trace: run_command: 'status' '--porcelain'
16:51:27.672090 exec_cmd.c:120          trace: exec: 'git' 'status' '--porcelain'
16:51:27.680657 git.c:344               trace: built-in: git 'status' '--porcelain'
16:51:27.730535 run-command.c:334       trace: run_command: 'status' '--porcelain'
16:51:27.732571 exec_cmd.c:120          trace: exec: 'git' 'status' '--porcelain'  

也试过:
git count-objects -v 

给出输出:
count: 0
size: 0
in-pack: 28167
packs: 1
size-pack: 1117374
prune-packable: 0
garbage: 0
size-garbage: 0

我不确定下一步要采取什么调试步骤,所以在这里感谢帮助。
这是在带有 Ubuntu 的 WSL 上运行的,其他存储库都很好。

最佳答案

似乎我能解决这个问题的唯一方法是再次克隆 repo
更新:
我再次遇到这个并找到了这个帖子:
https://medium.com/@marcosantonocito/fixing-the-gh001-large-files-detected-you-may-want-to-try-git-large-file-storage-43336b983272
EG基本上...

git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch fileNameToRemove.extn'
或者
git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch pathToFile/fileNameToRemove.extn'
然后做一个 git pull 和 push

关于Git卡在状态/添加/提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61307545/

相关文章:

git - git如何在另一个分支下创建一个分支?

ubuntu - 找不到 ROS 包

node.js - 错误 : npm update

eclipse - ubuntu 上的 opencv - 找不到 lib 文件

ubuntu - sh : 1: laravel: not found

Git:使用 Git 管道命令在裸仓库中编辑文件

linux - Bitbucket ssh 公开拒绝

linux - Git 子模块因无法访问子模块而失败

linux - 通过 CLI 修改目录中的所有文件名 - Ubuntu

regex - 如何从 bash 中的字符串中提取值?