how to delete branch in git?

How to delete a branch in git

Delete a branch with git branch -d . The -d option will delete the branch only if it has already been pushed and merged with the remote branch. Use -D instead if you want to force the branch to be deleted, even if it hasn’t been pushed or merged yet. The branch is now deleted locally.

Learn Git from Scratch – How to Merge and Delete Branches

Leave a Comment

Share via
Copy link
Powered by Social Snap