heroku无需克隆即可协作

标签 heroku clone collaboration

我已被邀请加入 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/

相关文章:

python - 添加的数据库记录在重新启动应用程序后被删除(heroku/SQLAlchemy)

ruby-on-rails - Rails Gemfile.lock - gem Windows 版本与 Linux 版本

Heroku pgAdmin4 隐藏我不允许访问的数据库

ruby-on-rails - 如何在heroku Rails应用程序上更新seed.rb

python - 适用于多只 turtle 的功能

Git 克隆在 Linux VM 上对 HTTPS 进行故障转移(膨胀 : Data Stream Error)

java - Java中Object的clone函数如何传递参数

continuous-integration - 在小型开发团队中进行持续集成有什么好处吗?

ios - 在 iOS 上使用 OpenGLES 进行多图协作

GitHub 提示 "Force pushing can corrupt your pull request."为什么?