运行linux-Ubuntu的子系统,当我尝试"git init"以开始推送到github时,我得到以下错误
error: chmod on /mnt/c/Users/skywalker/dev/flatiron/projects/StarwarsCLI/.git/config.lock failed:
Operation not permitted
fatal: could not set 'core.repositoryformatversion' to '0'
我被告知要运行
Open your Windows Defender Security Center
Go to Home
Click and open "Virus and Threat protection"
Click and open "Virus and threat Protection Setting"
Click and open "Manage Controlled folder access" in "Controlled folder access"option
Turn the "Controlled Folder access" OFF
Run "Git init" from cmd. DONE!
无分辨率-
有什么建议吗?谢谢
我遇到了这个问题,这对我来说很有效:
sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata