Is there a way to delete a branch on heroku

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.

  • How can I deploy a WordPress site with Git without committing WP core?
  • How to Upgrade and Deploy WordPress Install as a Git Submodule?
  • Deploying and updating website
  • Appropriate strategy for tagging and hotfixing with git
  • In a Drupal environment: is there a better git deployment than my current one?
  • Capistrano: Problem with permissions on deploy
  • pushing to heroku master failed with:

     ! [rejected]        master -> master (non-fast-forward) 
     error: failed to push some refs to ''             
     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..

  • why i cannot checkout another git branch?
  • How do I remove a big file wrongly committed in git
  • Test to determine if git clone command succeeded
  • Git pushes HEAD -> master despite set-upstream-to and push.default
  • My xcode is showing two branches open at same time in source control
  • Git Bash operate with cygwin
  • One Solution collect form web for “Is there a way to delete a branch on heroku”

    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'”

    Git Baby is a git and github fan, let's start git clone.