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