我在一个想部署到heroku的Web应用程序上工作。我将 Eclipse 与 eGit 一起使用,因此我的项目已经在本地使用 Gig 进行管理,并在 github 上远程管理。我知道 Eclipse 上有一个 Heroku 插件,我阅读了文档,但没有找到如何创建现有 repo 并将其推送到 Heroku?
谢谢 !
如果没有 Eclipse,您只需为 Heroku 应用程序添加一个带有 Git URL 的遥控器。例如,如果应用程序是“tubby-rabbit-9876”,那么在命令行上:
git add remote heroku git@heroku.com:tubby-rabbit-9876.git
但是,在 Eclipse 中添加一个遥控器,就这样做吧。
更新0
在 Eclipse 中,使用以下命令添加远程:“Preferences > Team > Git > Configuration > Repository Settings > Add Entry...”