fatal: Unable to create 'C:/Program Files/Git/My Sample/.git/index.lock': Permission denied
如果我在Git Bash中添加'git add'myFile.txt',尽管其他文件未使用该目录,它仍显示上述错误。
First, don't create a repo where git bash
open: in its session, '/' is by default where Git is installed C:/Program Files/Git/
Open a git bash in one of your C:\\Users\\you... folder, and try a git init NewRepo
there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.