อาจจะมีหลายคนที่บางที ได้ทำ SSH เพื่อความสะดวกในการทำงานร่วมกันกับ Git แต่บางทีหากเราทำบน Server แล้วบางครั้งก็เกิดเหตุการณ์ที่เราไม่ได้ทันคิด จู่ๆ วันหนึ่งมาก็เกิด Git ไม่ได้ซะงั้น เราสามารถแก้ไขปัญหาได้ตามคำสั่งด้านล่างนี้เลย
ที่มา http://stackoverflow.com/questions/6448242/git-push-error-insufficient-permission-for-adding-an-object-to-repository-datab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/repo.git | |
chgrp -R groupname . | |
chmod -R g+rwX . | |
find . -type d -exec chmod g+s '{}' + |
ความคิดเห็น
แสดงความคิดเห็น