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
app folder contains a
requirements.txt in which I wrongfully put
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 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
- git status of another remote
- git: how can I programmatically determine if I need a pull or push?
- How can I get 'git status' to always use short format?
- how to implement something like a VCS status/ignore program?
- How can I see a list of my newly-created files in git without staging them for commit?
- Git branches - statuses mixed-up?
here is the
Django==1.4.3 South==0.7.6 distribute==0.6.28 dj-database-url==0.2.1 django-registration==0.8 numpy==1.6.2 matplotlib==1.2.0 psycopg2==2.4.6 python-memcached==1.48 wsgiref==0.1.2 simplejson==3.0.7
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
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
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