error: insufficient permission for adding an object to repository database ./objects

Ops error ini terjadi ketika menjalankan perintah git push origin master untuk nge-push file ke dalam server git Ubuntu 12.10

Bismillah

q> Error
Selection_133

q> Ini pesan errornya

$ git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 249 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects

fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit

q> Ops ,, liat dulu group dari user yang digunakan, misalnya user ubuntu adalah saifiahmada, maka

groups saifiahmada

q> Masuk ke direktory dari repository, misalnya repository ada pada /var/git/myweb.git , maka

cd /var/git/myweb.git

q> Ubah group  file yang ada / yang baru dibuat menjadi sama dengan group dari direktory

sudo chmod -R g+ws *

q> Karena user = saifiahmada, maka rubah group file menjadi saifiahmada

sudo chgrp -R saifiahmada *

q> Sukses

$git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 249 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
To file:///var/git/myweb.git/
* [new branch] master -> master

q> Ini skrensot nya
Selection_134

Alhamdulillah

sumber::
http://parizek.com/2011/05/git-insufficient-permission-for-adding-an-object-to-repository-database-objects/

Published by

saifiahmada

Begin a big Process with a bit trying

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s