Reputation: 3951
I push changes and it says it commits them. And I use heroku run python and it still is using the old code.
How do I get it to commit to Heroku?
I have checked git remote -v
and it says - which is correct - there are two remotes - one to BitBucket and one to Heroku - but why doesn't Heroku update the changes.
The only way I can update changes is to use git push heroku master
which takes a lot of time. Is there a faster approach
Upvotes: 3
Views: 2071
Reputation: 95
Create a third remote that contains both locations.
git remote add all ssh://[email protected]/bitbucketusername/bitbucketreponame.git
git remote set-url --add all [email protected]:yourherokuappname.git
git push all master
Upvotes: 3