我的git repo有问题.在我推送到服务器的最后几天,我收到这样的消息:"自动打包存储库以获得最佳性能",它似乎没有消失并返回shell.
我也尝试检查一个新的分支,然后在我以前的分支上做一个rebase,然后git gc删除未使用的历史对象,然后进行推送,但仍然显示此消息.请让我知道我的回购发生了什么.
注意:我不认为这是一个重复的问题,这是一个非背景包,挂起 git 与一个微妙的不同的错误消息.
在我的一个git存储库中,每次调用时(例如)git fetch,git打印:
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Run Code Online (Sandbox Code Playgroud)
如果我git fetch反复做的话,它似乎每次都会打印出来,即使没有任何变化也无需git fetch做任何事情.这对我来说没有多大意义.它似乎也发生在其他网络操作中,例如git push和git pull.
该命令立即返回到提示,没有进一步的输出,我找不到在我的机器上运行的任何git进程.它似乎只发生在这个存储库中,并且只在这台机器上发生.git config -l | grep gc没有回报.
我该怎么做才能诊断或解决这个问题?
$ git --version
git version 2.0.1
Run Code Online (Sandbox Code Playgroud)
我使用的是OS X 10.9.
今天,git开始表现得很有趣(好吧,比平时更有趣),坚持git gc每次合并后都要跑,即使他们是背靠背.
C:\Projects\my-current-project>git pull
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 16 (delta 11), reused 0 (delta 0)
Unpacking objects: 100% (16/16), done.
From git.company.com:git/
e992ce8..6376211 mybranch/next -> origin/mybranch/next
Merge made by recursive.
Auto packing the repository for optimum performance. You may also run "git gc" manually. See "git help gc" for more information.
FIND: Parameter format not correct
Counting objects: 252732, done.
Delta compression using up to 2 threads.
Compressing objects: …Run Code Online (Sandbox Code Playgroud)