Goo
Goo

Reputation: 1328

How to delete a remote branch after wrong push

I'm new with git and I made a typo mistake in the remote branch name during my push.

git push remote/branch_with_typo_mistake.

Then a new branch was created on the remote server.

How can i completely remove this new non-wanted branch from the server ?

Upvotes: 0

Views: 102

Answers (1)

Daniel Hilgarth
Daniel Hilgarth

Reputation: 174289

Use git push remote :branch_with_typo_mistake.
Note the colon before the branch name.

Upvotes: 4

Related Questions