[英]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.