我正在运行以下命令并得到fatal: remote heroku already exists.错误.
我不知道这里有什么问题,以前它曾经没有错过.
git init
git add .
git commit -m 'Initial commit'
git remote add heroku git@heroku.com:myapp.git
Run Code Online (Sandbox Code Playgroud)
小智 17
打开.git/config,你会发现
[remote "heroku"]
url = git@heroku.com:xxx.git
fetch = +refs/heads/*:refs/remotes/heroku/*
Run Code Online (Sandbox Code Playgroud)
将xxx更改为您要推送的应用名称.然后
git push heroku master
Run Code Online (Sandbox Code Playgroud)
这个对我有用.你可以尝试一下.
| 归档时间: |
|
| 查看次数: |
7698 次 |
| 最近记录: |