git error: unable to unlink old (Permission denied)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git error: unable to unlink old (Permission denied)相关的知识,希望对你有一定的参考价值。

  今天在使用Idea git切换分支的时候出现了这样的错误,会导致切换分支失败,强制切换的话,并没有成功,因为文件并没有成功切换,

经过搜索发现,可能是文件被某进程占用,没有释放掉,我怀疑是Idea的某个进程占用了,于是果断退出Idea,使用git bash 来切换分支,

 

成功了,

 

 

总结:在使用git遇到这样的问题时,首先考虑某个文件是不是被其他进程占用,如果占用,杀掉那个进程在check out,,

以上是关于git error: unable to unlink old (Permission denied)的主要内容,如果未能解决你的问题,请参考以下文章

git pull error: unable to unlink old (Permission denied)

git pull 报错:Error merging: unable to unlink old 'xxx.jar': Invalid argument

idea下git 错误 error: unable to read askpass response from 'C:UsersASUS.IntelliJIdea2019.1syste

Unable to find remote helper for 'https'

git 删除远程分支报错error: unable to delete ‘origin/xxx‘: remote ref does not exist

执行git push命令时报错unable to access ‘https://github.com/xxx.git/‘: The requested URL returned error: 403