0

I am having the same problem like:

this thread

when I tried the given answer:

chown --recursive $(id -u) .

in my git bash, and after I tried to commit I still have the problem. If I run:

chown --recursive $(id -u) 

(Notice that the dot is not there) I got the following message:

chown: missing operand after '197609'

What does it mean? That the missing operand is the dot?

Why "chown --recursive $(id -u) ." is not solving the problem? What other things can I do?

Thanks for your help

14
  • 1
    What does id output ? What does ls -l .git/COMMIT_EDITMSG output in the repository with that file? Oct 26, 2015 at 16:54
  • 1
    id does: uid=197609(DJH) gid=197121 groups=197121 and ls -l .git/COMMIT_EDITMSG : -r--r--r-- 1 DJH 197121 22 sept. 17 10:37 .git/COMMIT_EDITMSG
    – Daniel
    Oct 26, 2015 at 16:57
  • 1
    it does: drwxr-xr-x 1 DJH 197121 0 oct. 26 17:34 .git/
    – Daniel
    Oct 26, 2015 at 17:06
  • 1
    And you are using git from the command line or from some graphical/other client when this happens? Oct 26, 2015 at 17:09
  • 1
    I was using tortoisegit but I have the same problem when I use git bash
    – Daniel
    Oct 26, 2015 at 17:10

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.