How to remove git remote branches locally which has been deleted online?
Asked Answered
W

1

5

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 ?

Whirlybird answered 10/1, 2022 at 17:5 Comment(0)
M
8

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

git fetch --prune -a
Murphy answered 10/1, 2022 at 17:13 Comment(1)
Didn't work for me. I had to use git remote prune <remote name, e.g. origin>.Eggcup

© 2022 - 2024 — McMap. All rights reserved.