随着Heroku的应用,而在git的URL像[email protected]:app.git
, 而在github上回购https://github.com/username/other_app.git混帐与Heroku的应用和github上
可以同步两个回购的两个混帐服务器托管SEMA应用程序(的Heroku和github)?
而且还Link Heroku app to Github repo. For what?
随着Heroku的应用,而在git的URL像[email protected]:app.git
, 而在github上回购https://github.com/username/other_app.git混帐与Heroku的应用和github上
可以同步两个回购的两个混帐服务器托管SEMA应用程序(的Heroku和github)?
而且还Link Heroku app to Github repo. For what?
当然是的,这是可能的,因为Git是一个distributed repository。您可以配置多个遥控器,一个在GitHub上,另一个在heroku上,并将更改推送到它们两个。
例子:
heroku create
或heroku git:remote -a my_heroku_app
)。详细信息请参见git documentation of heroku。这里有一些有用的命令与github上/ Heroku的工作时:
显示github上远程:
远程Git秀起源
显示Heroku的混帐:
git的远程显示的Heroku
将github推送到heroku:
混帐推Heroku的主
,如果你有在github上一个“分期”分支,并希望推动这Heroku的混帐(主)的 “分期的应用程序”:
混帐推Heroku的分期:主-v