how to find status of my code with regard to my app's git repo on heroku

I have created an app on heroku and pushed my code (after creating git repo by git init).
My app folder contains a requirements.txt in which I wrongfully put matplotlib before numpy. (Actually numpy is needed to install matpplotlib and so should come before it).

When I pushed to heroku master,the compilation failed with an error message ‘numpy is needed to install matplotlib’.
So I corrected the order of items in requirements.txt and using git add, git commit etc committed it.
Then I tried to push the code again using git push heroku master.
But it failed with the same error message

here is the requirements.txt


Then I tried to find the status using

git status and it produced

# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
# nothing to commit (working directory clean)

I used to add my code to Github.
I think the origin/master relates to that. Am I wrong?

How do I find the status of my commit on heroku?
My app has a name say

  • How to ask git if the repository is in a conflict stage?
  • Git tag status while not in directory
  • GIT diff and GIT status ignore changes of a file
  • Ignore new commits for git submodule
  • how to implement something like a VCS status/ignore program?
  • git: how can I programmatically determine if I need a pull or push?
  • git status - is there a way to show changes only in a specific directory?
  • in zsh, how do I do a conditional on the exit status of a program?
  • One Solution collect form web for “how to find status of my code with regard to my app's git repo on heroku”

    Regarding the status, you have several options:

    • “git: check if pull needed”:
    git remote -v update
    git status -uno
    • “git equivalent of svn status -u“:
    git fetch heroku
    git log --name-only ..heroku/master

    Check if origin does point to heroku or not:

    git remote -v

    In that case, a simple git push isn’t enough

    Depending on your default push policy, you might want to make sure your branch has heroku/master as upstream branch:

    git push -u heroku master
    Git Baby is a git and github fan, let's start git clone.