Kindly confirm your current branch is master.
git branch
If the pointer is not pointing the master, then check out to master branch
git checkout master
Commit your changes and try to push to heroku
git commit -am "xxxyyzzz"
git push heroku master
More Related Contents:
- Heroku: How to push different local Git branches to Heroku/master
- How to push different local Git branches to Heroku/master
- Is there a way to cache https credentials for pushing commits?
- Git push requires username and password
- How do I properly force a Git push?
- Can’t push to GitHub because of large file which I already deleted
- What are the differences between “git commit” and “git push”?
- Git Push ERROR: Repository not found
- Cannot push to Heroku because key fingerprint
- ! [rejected] master -> master (fetch first)
- How can I automatically deploy my app after a git push ( GitHub and node.js)?
- Remote origin already exists on ‘git push’ to a new repository
- Github remote push pack size exceeded
- How do I avoid the specification of the username and password at every git push?
- Git push doesnt do anything over HTTPS
- Git push hangs when pushing to Github?
- Push to GitHub error: Couldn’t find host github.com in the .netrc file; using defaults
- Issue pushing new code in Github
- What does ‘–set-upstream’ do?
- Is there a way in git to obtain a push date for a given commit?
- Pushing from local repository to GitHub hosted remote
- Git push failed, “Non-fast forward updates were rejected”
- Pushing to github after a shallow clone
- How do I fix “remote: fatal error in commit_refs” errors trying to push with Git?
- GitHub – prevent collaborators from using push -f
- When doing a ‘git push’, what does ‘–set-upstream’ do?
- failed to push some refs to [email protected]
- Push existing project into Github
- Git best practice for config files etc
- With GitHub how do I push all branches when adding an existing repo?