| 1 min read

搞计算机的总会莫名奇妙的遇到一些问题,之前做了那么多的项目,突然就出现了,在push 时候抛出这样的错误

fatal: Unable to create temporary file: Permission denied
error: pack-objects died of signal 13

搜索后,发现也挺频繁的。大致就是这样:

// 登录git服务器,进入你的项目
cd your_rep.git
chmod -R g+ws *
chgrp -R git *
git config core.sharedRepository true

然后再回到你本地目录,输入 git repack master

参考: http://stackoverflow.com/questions/1918524/error-pushing-to-github-insufficient-permission-for-adding-an-object-to-reposi

git 常用命令:http://www.jackpu.com/git-zhong-bi-xu-ji-zhu-de-ming-ling/

You Can Speak "Hi" to Me in Those Ways