Q:

How to push changes from Bitbucket to Heroku

I'm new to programming, learnt languages but this part I have no clue.  
I'm working on a app that is on bitbucket and on Heroku cloud. 
I am not exactly very clear how the bibucket repository interacts with Heroku and also my local offline commandprompt+sublimetext+PG database. 
So what I'm doing is i have made some changes physically on Bitbucket (manually on their website) based on the changes Ive made and viewed (offline on localhost 3000) and wanted to push it to Heroku to have the changes online. There does not seem to be any buttons on bitbucket for that purposes and I guess I have to do it through the command prompt. 
In that case how do I make those changes (command lines) and update the sublime+PG on the local server? I seen a few codes on git and suspect those are it (like git push -v) which lists the repositories but I don't wish to test and end up screwing the codes. Please advise if there are easier to do any of the above.
Note that I want the changes to be on Heroku because of this error.
Rails 4 Relationship Issue extended
Also what the difference between pulling and pushing changes? I'm reading the git definitions but it isn't saying much. Just that pull is pulling data from other repository to I'm not sure where. Push is to update remote refs with associated objects. 
Many thanks! 

A:

Because you're new, let me explain what you need:

Heroku uses an amazing deployment process which based on the git scm
  system. This means that you just need to "push" your git
  respository to Heroku in order for it to deploy your latest revision
  of code
The problem you cited is you're trying to push from bitbucket
  directly. Bitbucket / github are essentially just cloud
  repositories where you can store your code, and is not where Heroku
  can "read" your files from

To get this working, as you've stated in your comments, you need to push from your computer. This is achieved by creating a remote repository for Heroku, and then pushing to that, like this:
$ git remote add heroku git@heroku.com:yourherokuapp.git
$ git add .
$ git commit -a -m "Latest Commit"
$ git push heroku master

