git init shows 'error: chmod ... .git/config.lock failed: Operation not permitted'

As per this answer, sudo git ... (or running git from root equivalently) might help -- it helped me.

It's kind of silly that chmod fails for normal users but not for root, even though the underlying problem is that NTFS does not support Unix permissions. Changing the mount options is nice when you have the luxury to.

Also, edit .git/config and set filemode = false, if not already so. git config core.fileMode false also does this, but runs into the same lockfile permission problem.

Answering just because this is the first entry in search result for ".git/config.lock failed: Operation not permitted"