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.

  • Elastic Beanstack - Rails - git deploy and deploy hooks
  • How do I create a deploy git branch for my Yeoman project?
  • Git Deployment Workflow that Takes Live Updates Into Consideration
  • `composer install` for production deployments
  • Is it a good practice to make a tag in git for every deployment build?
  • How can I, in one command, create or update a remote?
  • 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..

  • Project Documentation: Create wiki pages, or create Markdown files in the repo?
  • nginx + passenger + sqlite3 on Pi getting 502 bad gateway
  • Boo to the Chocolatey Gods
  • git-http-backend with AuthzUnixGroup not working properly
  • Merge separate git repositories into one repository, organized by folders
  • Falling back to rsync, etc if git isn't found
  • 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.