Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my Ubuntu terminal, I create an empty Git repository in an empty folder, say called "Docs", on a removable hard disk. But the system response me an error message to my command

$ git --bared init --shared
fatal: Could not make /media/HARDDISK/Docs/refs/heads writable by group

I tried different options for "share", e.g., group and all. But it does not work. The initialization works if I remove the --share argument.

share|improve this question
    
how about sudo git --bared init --share ? –  Raptor Apr 24 '13 at 7:34
    
It does not work also... –  Zhi Lu Apr 24 '13 at 7:36
2  
isn't --bare and --shared? –  gipi Apr 24 '13 at 7:41
1  
If it's on a removable hard disk, it might be a FAT partition which doesn't support group permissions. –  jszakmeister Apr 24 '13 at 8:45
1  
@jszakmeister It's FAT partition. Can I please ask is there any solution to this problem? Git on FAT partition works in Windows and Mac OS X...Thanks! –  Zhi Lu Apr 24 '13 at 13:29
show 8 more comments

migrated from stackoverflow.com Apr 24 '13 at 9:28

This question came from our site for professional and enthusiast programmers.

1 Answer

You probably must be the superuser otherwise you can't change the group permissions.

On ubuntu try

$ sudo git --bare init --shared /path/to/repo
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.