Is there any way to delete a branch on the hero

I use the hero to host my application. Mergers and discounts I received 2 different stages of my application.

The local master is different from master on heroku.

clicking on the master of the hero ended 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 remove the master hero? then I can click it again for the master hero.

+5
source share
1 answer

You can force click

git push --force origin master

This will overwrite the remote master.

You can also delete the remote branch by doing this

git push origin :master

Note the colon before the branch name. This command says: "Do not take action on the local computer and place it instead of the remote branch" master "

+20
source

All Articles