Ask your Question

Write to us

Ask Question

How to Delete Branches locally and remotely in git

Ranjeet Singh

To delete a branch locally from your machine

$ git branch -D <branch_name>

To delete a branch remotely from the server

$ git push origin --delete <branch_name>

Ranjeet Singh