Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pull a branch deletion in git?

Tags:

git

git-branch

If someone has deleted the remote branch, is there any way I can pull from the same repository, and get my local branch deleted as well?

It would be handy not to have all developers do the manual removal of a branch when we're done with a feature.

like image 755
Magne Avatar asked Mar 21 '12 19:03

Magne


1 Answers

Only thing you can do is:

git remote prune origin

And you can't delete the local branches, which have to be manually deleted.

like image 197
manojlds Avatar answered Sep 28 '22 07:09

manojlds