Home > Software design >  How to remove git remote branches locally which has been deleted online?
How to remove git remote branches locally which has been deleted online?

Time:01-11

After a successful merge request , the branch get's deleted on the gitlab but it still exist on my local machine so how can I remove that branch locally ?

enter image description here

How can I remove config-tailwind branch locally only ?

CodePudding user response:

You can fetch with --prune so that deleted remote branches disappear on the local repository

git fetch --prune -a
  •  Tags:  
  • Related