git - 无法通过命令行将我的 Web 应用程序推送到 GitHub 存储库
问题描述
我正在尝试将我的 Web 应用程序推送到我的 GitHub 存储库,并且我想在根级别初始化 Git 存储库,但我收到了这个错误
C:\Windows>git init
C:/Windows/.git: Permission denied
也在尝试命令时: git commit -m "first commit"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'user@DESKTOP-SBN1VHI.(none)')
我确认我的 GitHub 存储库链接是正确的。你知道具体是什么问题吗?
解决方案
“权限被拒绝”消息与访问远程存储库无关,它指的是.git
本地磁盘上的目录。确保您正在运行的用户git
对此目录具有写入权限。
推荐阅读
- android - Android : Google Maps API V2 显示黑屏 ECLIPSE
- extjs - Okta AJAX 出错 - ExtJs 中没有“Access-Control-Allow-Origin”标头
- javascript - 返回两个作为素数的奇数
- selenium - 我的 Selenium 代码上的量角器
- python - 在python中将十六进制转换为15位RGB值
- caching - 内存中的哪个 Db 应该用于缓存树,主要用于读取?
- wordpress - 如何基于 REST API 对用户进行身份验证并获取身份验证令牌
- ios - 在 XCode 中加载时,是否可以调用 iOS API 以使应用程序自行重新编译?
- delphi - ECommonCalendarError: 未能设置日历日期或时间
- javascript - 为 React 和 Node Js 上传图片的最佳模块或解决方案是什么