[英]Why do I get “Permission Denied” when trying to get onto mysql using command line?
[英]When I type git init in Command Prompt, it says “Permission Denied”
我正在尝试在 heroku 应用程序上上传一个全栈网站,并且我正在关注它的教程。 在我登录 Heroku 后,我输入了 git init 以远程连接到我的 heroku 存储库,但在输入之后,它给了我这个错误消息
C:\Users>git init
C:/Users/.git: Permission denied
我不知道为什么会这样? 谁能帮我?
Deploying with Git Heroku 文档建议在代表您的项目的本地文件夹中使用git init
。
cd myapp
git init
Initialized empty Git repository in .git/
git add .
git commit -m "My first commit"
然后:
heroku create
Creating app... done, ⬢ thawing-inlet-61413
https://thawing-inlet-61413.herokuapp.com/ | https://git.heroku.com/thawing-inlet-61413.git
直接在C:\Users
中初始化 Git 存储库而不是代表您的项目/应用程序的本地文件夹是不正确的。
您应该在代表您的全栈网站的文件夹中使用它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.