Git: updating remote branch information

Question:

In a git repository, a remote branch I am not tracking was deleted. When I type

the deleted branch still shows up (and I can check it out)

What git command do I have to run to update this info?

Answer:

If you perform something like

you only remove your local checkout. This command doesn’t do anything to the remote repository, which is why it still shows up.

Solution:

will remove the the remote branch (note the ‘:’), and

will remove your local checkout.

(Reference)

Leave a Reply