things I learnt today - delete remote branch through cli

vparab

Vidisha Parab

Posted on September 3, 2020

things I learnt today - delete remote branch through cli

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

💖 💪 🙅 🚩
vparab
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