git fetch 失敗提示insufficient permission for adding an object to repository db

參考:http://stackoverflow.com/questions/6448242/git-push-error-insufficient-permission-for-adding-an-object-to-repository-datab
執行 git fetch,提示
insufficient permission for adding an object to repository database
解決辦法:
cd .git/objects
ls -al
sudo chown -R yourname:yourgroup *

你可能感兴趣的:(git)