When you have to unlink file, you have to have permission 'w' for directory, in which file is, not for the file... git 出现unlink的问题一般是因为指定文件所在目录没有写权限, sudo chmod +w dirname -R