简体   繁体   English

当我在命令提示符中输入 git init 时,它显示“Permission Denied”

[英]When I type git init in Command Prompt, it says “Permission Denied”

I'm trying to upload a fullstack website on heroku app and I was following a tutorial on it.我正在尝试在 heroku 应用程序上上传一个全栈网站,并且我正在关注它的教程。 After I logged into Heroku i typed git init to remote connect onto my heroku repository but after typing it, it gave me this error message在我登录 Heroku 后,我输入了 git init 以远程连接到我的 heroku 存储库,但在输入之后,它给了我这个错误消息

C:\Users>git init
C:/Users/.git: Permission denied

I don't know why it does this?我不知道为什么会这样? can anyone help me?谁能帮我?

The Deploying with Git Heroku documentation suggest to use git init inside a local folder representing your project. Deploying with Git Heroku 文档建议在代表您的项目的本地文件夹中使用git init

cd myapp
git init
Initialized empty Git repository in .git/
git add .
git commit -m "My first commit"

Then:然后:

heroku create
Creating app... done, ⬢ thawing-inlet-61413
https://thawing-inlet-61413.herokuapp.com/ | https://git.heroku.com/thawing-inlet-61413.git

Initializing a Git repository directly in C:\Users instead of a local folder representing your project/application is not correct.直接在C:\Users中初始化 Git 存储库而不是代表您的项目/应用程序的本地文件夹是不正确的。
You should use it inside the folder representing your fullstack website.您应该在代表您的全栈网站的文件夹中使用它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么在尝试使用命令行进入mysql时出现“权限被拒绝”的提示? - Why do I get “Permission Denied” when trying to get onto mysql using command line? 当我通过Nginx使用mysql_connet但命令行正常运行时,权限被拒绝 - Permission denied when I use mysql_connet through nginx but command line runs normally 当我尝试创建MySQL数据库时,为什么我的权限被拒绝? - Why is my permission denied when I try to create a MySQL database? 连接数据库错误类型:2002:权限被拒绝 - Connect DATABASE Error TYPE: 2002: Permission denied 如何使用命令提示符创建mysql数据库? 我收到错误ERROR 1044(42000):用户''@ localhost'拒绝访问数据库'ivs' - How to create mysql database using command prompt? I'm getting error ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'ivs' 当我将 require_once() 与 ampps 一起使用时,出现 Permission denied 错误 - I am getting Permission denied error when i use require_once() with ampps 使用mysqldump执行MySQL备份时权限被拒绝 - Permission Denied when performing mySQL backup with mysqldump 在OSX中安装Docker卷时权限被拒绝 - Permission denied when mounting Docker volume in OSX 使用 MySQL NDB Cluster,访问从节点时出现权限被拒绝的错误 - Using MySQL NDB Cluster, I get a permission denied error when accessing slave nodes 使用命令提示符时,MySQL不需要密码 - Mysql requires no password when using command prompt
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM