[英]Git Error message Permission denied for init
我是在 Windows 计算机上工作的初学者,试图将我的项目推送到 git 上。 当我尝试运行git init
时,我的权限被拒绝。 链接到我的屏幕截图
它只是说C:/Program Files/Git/.git: Permission denied
。 这就是我使用 git 窗口时发生的情况。
当我使用命令提示符时,我得到了git add -A
然后它开始向屏幕发送垃圾邮件
warning: could not open directory 'AppData/Local/Application Data/': Permission denied
warning: could not open directory 'AppData/Local/History/': Permission denied
warning: could not open directory 'AppData/Local/Microsoft/Windows/INetCache/Content.IE5/': Permission denied
warning: could not open directory 'AppData/Local/Microsoft/Windows/Temporary Internet Files/': Permission denied
warning: could not open directory 'AppData/Local/Temporary Internet Files/': Permission denied
warning: could not open directory 'Application Data/': Permission denied
warning: could not open directory 'Cookies/': Permission denied
warning: could not open directory 'Documents/My Music/': Permission denied
warning: could not open directory 'Documents/My Pictures/': Permission denied
warning: could not open directory 'Documents/My Videos/': Permission denied
warning: could not open directory 'Local Settings/': Permission denied
warning: could not open directory 'My Documents/': Permission denied
warning: could not open directory 'NetHood/': Permission denied
warning: could not open directory 'PrintHood/': Permission denied
warning: could not open directory 'Recent/': Permission denied
warning: could not open directory 'SendTo/': Permission denied
warning: could not open directory 'Start Menu/': Permission denied
warning: could not open directory 'Templates/': Permission denied
warning: LF will be replaced by CRLF in .AndroidStudio3.4/config/codestyles/Default.xml.
The file will have its original line endings in your working directory
然后继续重复最后两行的变化。 即使我输入这个,它仍然是垃圾邮件。 我应该怎么办?
以管理员模式运行控制台并尝试 git git add .
反而
使用以下命令。
runas git add.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.