我正在尝试在heroku应用程序上上传一个全栈网站,并且我正在遵循一个关于它的教程。在我登录到Heroku之后,我输入了git init来远程连接到我的heroku存储库,但是在输入它之后,它给出了这个错误消息
C:\Users>git init
C:/Users/.git: Permission denied我不知道它为什么要这么做?有谁可以帮我?
发布于 2021-04-07 14:52:34
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存储库,而不是在代表您的项目/应用程序的本地文件夹中初始化是不正确的。
你应该在代表你的全栈网站的文件夹中使用它。
https://stackoverflow.com/questions/66976494
复制相似问题