`

Unlink of file '.git/objects/pack' failed. Should I try again? (y/n)

    博客分类:
  • git
阅读更多

原因:由于其他程序正在操作git目录下面的文件,导致git无法关联该文件,比如其他文件夹、应用程序、dos命令窗或者git bash。出现这种情况,就会报错,怎么确认(y)都无济于事。

 

正确的打开方式:

1、确定git目录是干净的,没有需要add和commit或者push的代码。

2、关闭所有操作该git目录下文件的应用程序包含命令窗。

3、再次使用git bash执行git pull或其他上次操作的命令继续进行即可。

 

更多实例应用扫码体验:

分享到:
评论

相关推荐

    coreutils:https:git.savannah.gnu.orggitcoreutils.git

    coreutils项目托管在Git Savannah上,可以通过访问<https://git.savannah.gnu.org/git/coreutils.git> 获取最新的源代码。这个仓库包含了一系列用C语言编写的程序,它们是每个类Unix系统的心脏,如`ls`、`cp`、`mv`...

    vimrc:我的vimrc备份

    unlink ~/.vimrc; ln -s ~/vimrc/vimrc_short_version ~/.vimrc unlink ~/.bash_profile; ln -s ~/vimrc/bash/linux_bash_profile ~/.bash_profile unlink ~/.tmux.conf; ln -s ~/vimrc/tmux/tmux.conf ~/.tmux.conf...

    phpcms-php

    PHPCMS文件管理器 v4.03 作者: Longbill ( www.longbill.cn ) ... ... 安装: ...2.确保以下文件为可写 ...1.可以远程管理服务器上的文件,包括上传,下载,新建,编辑,复制,粘贴,删除,远程下载等文件操作。...限制用户目录大小控制

    phpcms-2008-CVE-2018-19127

    {//../ rss”之类的精心设计的请求时,恶意内容(在这种情况下“ @unlink( FILE ); assert($ _ POST [1]);”)将被写入phpcms 2008网站上的缓存文件(在本例中为“ /cache_template/rss.tpl.php”)。 /type....

    PHP中is_file()函数使用指南

    @unlink($path.'/'.$file); } if (is_dir($path.'/'.$file)){ deletefolder($path.'/'.$file); @rmdir($path.'/'.$file); } } } closedir($handle); } } ?> ``` 在这个示例中,`deletefolder()` 函数递归...

    livcricket:一个使用espncricinfo rss feed和实时通知来检查板球比分的CLI

    安装$ git clone https://github.com/shakeabi/livcricket.git$ cd livcricket$ npm install$ Configure the settings.json$ npm link卸载$ npm unlink - (from project directory)设定值1. refreshTime: Time ...

    NFS文件系统

    - **dir.c/file.c/inode.c/symlink.c/unlink.c**:这些文件包含了与文件操作相关的系统调用,如创建、删除文件和目录等。 - **read.c/write.c/flushd.c**:这些文件专注于文件读写操作,其中文件读写性能是NFS文件...

    PHP实现解压缩zip文件并下载1

    if ($zip->open('../Resource/fpdf17.zip') === TRUE) { $zip->extractTo('D:/temp'); $zip->close(); echo "<script>alert('文件已经解压到 D 盘 temp 文件夹下!');</script>"; } } ``` 这段代码首先创建一...

    Debugging with GDB --2003年6.0

    Table of Contents Summary of gdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Free software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    getID3.rar

    require('../../vendor/getID3-master/getid3/getid3.php'); $getID3 = new \getID3(); $ThisFileInfo = @$getID3->analyze($destName); //分析文件,$path为音频文件的地址(文件绝对路径) $fileduration= $...

    Python-pathpy对ospath进行封装的模块

    - `open()`:打开文件,支持二进制和文本模式,返回一个`File`对象。 - `lines()`:返回一个迭代器,按行读取文件内容。 - `read_text()`和`write_text()`:读取或写入整个文件的内容,以文本形式。 **7. 文件属性...

    最新版的DebuggingWithGDB7.05-2010

    Table of Contents Summary of gdb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Free Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....

    PHP远程文件下载解压压缩包.zip文件file文件操作类

    throw new Exception('Failed to download remote file'); } // 解压ZIP文件 extractZip($localDestination . '.zip', $localDestination); // 清理临时ZIP文件 unlink($localDestination . '.zip'); } } `...

    c语言设计Brian W. Kernighan Dennis M. Ritchie

    8.3 open、creat、close和unlink系统调用 8.4 随机访问—lseek系统调用 8.5 实例—fopen和getc函数的一种实现 方法 8.6 实例—目录显示 8.7 实例—存储分配程序 附录A 参考手册 A.1 引言 A.2 词法规则 A.3 ...

    超好用的php操作文件夹函数-复制和删除

    $objects = scandir($dir); foreach ($objects as $object) { if ($object != "." && $object != "..") { if (filetype($dir."/".$object) == "dir") deldir($dir."/".$object); else unlink($dir."/".$object...

    usb鼠标驱动完全注释

    input_report_rel(dev, REL_Y, data[2]); input_report_rel(dev, REL_WHEEL, data[3]); input_sync(dev); resubmit: status = usb_submit_urb(urb, GFP_ATOMIC); if (status) err("can't resubmit intr urb ...

    UNIX环境高级编程(第二版,英文版)

    Streams and FILE Objects Section 5.3. Standard Input, Standard Output, and Standard Error Section 5.4. Buffering Section 5.5. Opening a Stream Section 5.6. Reading and Writing a ...

    memory-fs:[建议改用memfs]一个简单的内存文件系统。 将数据保存在javascript对象中

    记忆一个简单的内存文件系统。 将数据保存在javascript对象中。 var MemoryFileSystem = require ( "memory-fs" ) ;var fs = new MemoryFileSystem ( )... unlink ( "/a/test/dir/file.txt

Global site tag (gtag.js) - Google Analytics