To delete a branch what is the command that is used?
Answer / Vinit Kumar Singh
'Git branch -d <branch_name>' deletes a local branch, provided it has been merged or pushed to a remote repository. If the branch has unmerged changes, you'll need to use 'git branch -D <branch_name>' to force the deletion.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between git and github?
What is the function of ‘git reset’?
What is “Staging Area” or “Index” in GIT?
What is the function of ‘GIT PUSH’ in GIT?
How to resolve a conflict in git?
How to squash or fixup commits?
Explain the advantages of forking workflow?
What work is restored when the deleted branch is recovered?
What is the difference between rebasing and merge in git?
What is git Is-tree?
How is git instaweb used?
What is a “conflict” in git and how is it resolved?