git错误消息许可拒绝初始化

发布于 2025-01-28 23:19:32 字数 1951 浏览 2 评论 0原文

我是在Windows计算机上工作的初学者,试图将我的项目推向GIT。当我尝试运行git Init时,我会拒绝我的权限。 链接到我的屏幕截图

它只是说c:/program> c:/program files/git/。 git:拒绝的权限。 这就是我使用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

,然后继续重复最后两行的变化。即使我键入此功能,它仍在垃圾邮件中。 我应该怎么办?

I am a beginner working on a windows computer, trying to push my project on git. When I try to run git init I get my permission denied. Link to my screen shot

It just says C:/Program Files/Git/.git: Permission denied .
That is what happens when I use the git window.

When I use Command Prompt, I get as far as git add -A then it starts spamming the screen with

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

then keeps on repeating the last two lines with variations. Even as I type this, it is still spamming.
What should I do?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雨落□心尘 2025-02-04 23:19:32

在管理员模式下运行控制台,然后尝试git git add。而不是

Run the console in administrator mode and try git git add . instead

肩上的翅膀 2025-02-04 23:19:32

使用以下命令。

runas git add.

use the following command.

runas git add.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文