Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:59:00+00:00 2026-06-04T12:59:00+00:00

I am using heroku to host my application. With merges and rebases i got

  • 0

I am using heroku to host my application. With merges and rebases i got 2 different stages of my app.

Local master is different from master on heroku.

pushing to heroku master failed with:

 ! [rejected]        master -> master (non-fast-forward) 
 error: failed to push some refs to 'git@heroku.com:xxxxx.git'             
 Merge the remote changes (e.g. 'git pull') before pushing again.  See the    
 'Note about fast-forwards' section of 'git push --help' for details.                                                                                 

is there a way to delete the heroku master?
then i can push it again to heroku master..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:59:02+00:00Added an answer on June 4, 2026 at 12:59 pm

    You can force push

    git push --force origin master
    

    That will overwrite remote master.

    You can also delete remote branch by doing this

    git push origin :master
    

    Note the colon before branch name. This command says “take void from local machine and put this instead of remote branch ‘master'”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have my app up on Heroku. Using rack-canonical-host to handle re-directs from myapp.heroku.com to
I am using heroku to host a clojure app using noir. Its the free
I have pulled the SHARED_DATABASE_URL from heroku config SHARED_DATABASE_URL => postgres://username:xxxx@host.com/db_name I am using
I'm using heroku to host a web application with the primary focus of hosting
I'm using heroku as my host..It was working fine. Then I installed action_mailer_tls and
I would like to have different applications under the same domain using Heroku. Because
I am trying to create a chat application on heroku using the following https://github.com/tarnfeld/PusherChat-Rails
I'm using Heroku, and have added a couple custom domains for my app, i.e.
I'm using Heroku to deploy my Play! framework app. I have a form that
I was using only html emails which worked from my Rails 3.1.4 app, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.