About fatal: could not open '.git/COMMIT_EDITMSG': Permission denied

I am having the same problem like:

this thread

  • Check if directory is git repository (without having to cd into it)
  • Automatically remove *.pyc files and otherwise-empty directories when I check out a new branch
  • Add line break to git commit -m from command line
  • Tracking work hours through git
  • Get git commands list
  • exit code from windows console app not available in git hook script
  • 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

  • What does “T” mean in “git status”? (it isn't in the man page)
  • Eclipse EGit Checkout conflict with files: - EGit doesn't want to continue
  • Make a shallow GIT repository less shallow
  • is there an API for GIT (C++ or other languages)
  • Copy/fork a git repo on github into same organization
  • git working on two branches simultaneously
  • Git Baby is a git and github fan, let's start git clone.