In a git repository, a remote branch I am not tracking was deleted. When I type
git branch -r
the deleted branch still shows up (and I can check it out)
What git command do I have to run to update this info?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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)