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.

  • Git: Deploying to Environments with Different Web Root Directory Names
  • How do you deploy a website to your webservers?
  • why config folder is not pushed?
  • deploying to a test server before production on heroku
  • What is a good tool for Build Pipelines?
  • Are CRLF lines ok in a Rails project deployed on Linux?
  • 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..

  • how can I remove the unwanted objects from my repo after filter-branch --subdirectory-filter
  • gitk equivalent of git log --follow <full path to file>
  • git-new-workdir: Commit in working tree A causes bogus changes in tree B
  • Git: how to use stash -p to stash specific files?
  • Git + Rails: How to restore files deleted with “git rm -r”?
  • Easy-install live python libraries/scripts
  • 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.