Auto packing the repository in background for optimum performance. See git help gc for manual hous
git gc
有时候当你运行一些git命令(比如git pull)的时候,会有如下提示:
1 2 |
|
翻译:
1 2 |
|
当有这个提示的时候,直接运行 ' git gc ',就可以了。
原因:
Git 往磁盘保存对象时默认使用的格式叫松散对象 (loose object) 格式。Git 时不时地将这些对象打包至一个叫 packfile 的二进制文件以节省空间并提高效率。当仓库中有太多的松散对象则就会提示你运行 ' git gc '。
我们可以运行 ' find .git/objects -type f ' 命令,查看一下 objects 目录里有多少对象,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
然后在运行 ' git gc ' 命令后,在执行刚才的命令,看下 object 目录里面还剩下多少对象,如下:
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Auto packing the repository in background for optimum performance. See git help gc for manual hous相关推荐
- git长时间未清理无法拉取代码( git Auto packing the repository in background for optimum performance)
git本地仓库,如果长时间不进行清理,几个月以后的某一天,可能拉取代码的时候突然提示你 git Auto packing the repository in background for optim ...
- 解决git拉取代码时报:Auto packing the repository in background for optimum performance
问题:git本地仓库,如果长时间不进行清理,拉取代码的时候突然提示: Auto packing the repository in background for optimum performance ...
- Auto packing the repository in background for optimum performance.
在idea执行git命令(比如git commit,git fetch)的时候突然提示如下: 查资料,发现原来是因为自己本地一些 "悬空对象"太多(在使用git命令删除分支或者清空 ...
- 解决:fatal: not a git repository (or any of the parent directories): .git的问题
解决:fatal: not a git repository (or any of the parent directories): .git的问题 提示说没有.git这样一个目录 解决办法: 在命令 ...
- Git 小问题:fatal: not a git repository (or any of the parent directories): .git
超详细 Git 图文版小白教程(持续更新) 在clone仓库到本地后,执行命令提示:fatal: not a git repository (or any of the parent director ...
- git报错Another git process seems to be running in this repository, e.g. an editor opened by ‘git commi
问题: Another git process seems to be running in this repository, e.g. an editor opened by 'git commit ...
- ‘git’ 不是内部或外部命令,也不是可运行的程序或批处理文件;fatal: not a git repository (or any of the parent directories): .git
一.'git' 不是内部或外部命令,也不是可运行的程序或批处理文件. cmd 里面运行git提示"不是内部或外部命令,也不是可运行的程序或批处理文件" 打开网址https://gi ...
- Another git process seems to be running in this repository, e.g. an editor opened by ‘git commit‘. .
今天使用git时候报错 报错信息如下: Another git process seems to be running in this repository, e.g. an editor opene ...
- tortoiseGit clone大代码,报错 fatal: Not a git repository (or any of the parent directories): .git 问题
https://blog.csdn.net/wenb1bai/article/details/89363588 规避方法 命令行中 git init git pull https://code.ali ...
最新文章
- 模拟浏览器的神器 - HtmlUnit
- java 动态读取文件_Java窗体动态加载磁盘文件的实现方法
- 控制显示隐藏_iOS13隐藏了5个超实用新功能:让iPhone的使用体验更好
- 二叉树的三叉链表实现c语言,数据结构:二叉树的三叉链表存储--Java实现
- 【OpenCV函数】轮廓提取;轮廓绘制;轮廓面积;外接矩形
- php家检乘除,php通用检测函数集(转)_php
- Java监听器Listener使用说明
- php 用什么缓存最好,在PHP中缓存中/大型数据集的一些最好的工具/策略是什么?...
- UVA12676 Inverting Huffman
- 【树莓派】使用VNC远程桌面
- sql还原mysql_如何还原sql数据库
- C++20新特性—概述
- 一首能记住网线水晶头接法诗
- JavaEE学习记录Day08、09、10
- 3D城市模型、实景城市图...航测无人机轻松构建另一个世界
- ios 页面即将消失_20个即将推出的页面介绍及如何正确处理它们
- 利用五次shift破解密码(Windows7)
- C# WPF MVVM框架搭建
- mysql堡垒机漏洞_关于近期网传齐治堡垒机漏洞的声明
- office尾注后继续插入正文