cocoapod:将存储库推送到主干时权限被拒绝

时间:2016-08-11 17:14:29

标签: git cocoapods

我试图将我的cocoapod项目推向主干。但每次发生这种情况

pod trunk push MyCocoaPod.podspec

Updating spec repo `master` Performing a deep fetch of the `master` specs repo to improve future performance [!] /usr/bin/git fetch
--unshallow

error: cannot open .git/FETCH_HEAD: Permission denied

1 个答案:

答案 0 :(得分:0)

因为您对.git / FETCH_HEAD目录没有足够的权限,请运行以下命令:

cd `your cocoa pod project file`
sudo  chown -R `courser` .git/