我已被邀请加入 heroku 合作。我收到了电子邮件:
Since you already have an account with Heroku, you can get started by simply git cloning the app repository:
git clone git@heroku.com:.....
其他合作者和我自己已经在推/拉到同一个 github 存储库,所以我已经有了代码的副本。
来自 Heroku 开发中心 (https://devcenter.heroku.com/articles/collab):
$ heroku git:clone -a APPNAME This will create a directory called APPNAME, with a full copy of the git repository. It also sets up a git remote called heroku.
那么,我需要做什么才能将 git remote 设置为 heroku?我知道我可以转储我的副本并克隆它,但我不想这样做。
最佳答案
运行 heroku git:remote -a APPNAME
从现有的 git 目录中。
您也可以直接使用 git remote
执行此操作-- 在 heroku 控制面板中查看您的应用程序以查找 git 地址。
我不建议使用 heroku git:clone
作为文档的详细信息,因为听起来像您一样,您应该使用单独的 git 托管提供商(例如 github)来实际管理您的源代码。
关于heroku无需克隆即可协作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13076215/