The push command has the form
git push remote_name source_ref:destination_ref
All you have to do to fix your mistake is
git push origin +fix78:fix78
Plus indicates that you do not care that the branch is potentially losing history, since the previous click was an error.
Alternative syntax
git push -f origin fix78
if you omit the destination, this implies that it is the same name. If tracking is configured for a specific branch on the remote control, it will go on to that. Removing branches has 2 syntaxes, the old one:
git push -f origin :fix78
and
git push --delete origin fix78
The first reads as "push anything in fix78", which removes it.
One trick is that if you specify . as a remote name, this implies the current repo as a remote. This is useful for updating a local branch without having to check it:
git push . origin/master:master
The wizard will update without a control wizard.
Hope this helps
Adam Dymitruk Jun 08 2018-11-11T00: 00Z
source share