Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Devops
  3. Question
Devops

How do I delete a Git branch locally and remotely?

Asked by Icover Mar 18, 2025 3.0K views 1 answer
Share

About this question

To delete a Git branch:

Locally:
git branch -d branch-name  # Use -D to force delete

Remotely:
git push origin --delete branch-name

Your answer

1 Answer

More Devops discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest DevOps Blogs

Guides, tips and career advice on DevOps from JanBask experts.