2012-12-06 42 views
3

我推动更改,它说它提交它们。我使用heroku运行python,它仍然使用旧的代码。Git Push - Heroku和BitBucket

如何让它承诺Heroku?

我检查了git remote -v,它说 - 这是正确的 - 有两个遥控器 - 一个用于BitBucket,一个用于Heroku - 但为什么Heroku不更新更改。

我可以更新更改的唯一方法是使用git push heroku master,这需要很长时间。有没有更快的方法

回答

3

创建包含两个位置的第三个远程。

git remote add all ssh://[email protected]/bitbucketusername/bitbucketreponame.git 
git remote set-url --add all [email protected]:yourherokuappname.git 
git push all master