things I learnt today - delete remote branch through cli
Vidisha Parab
Posted on September 3, 2020
list only the remote branches
git branch -r
delete a remote branch
git push -d origin <branch_name>
remove stale/obsolete remote branch references from local
git fetch --all --prune
💖 💪 🙅 🚩
Vidisha Parab
Posted on September 3, 2020
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
todayilearned How to automatically migrate all your repositories from Gitlab to Github.
February 12, 2023