Tag: git
-
How to Delete Local and Remote Branches in Git: A Complete Guide
TLDR; Deleting a Local Branch in Git To delete a local branch, use one of these commands: Safe deletion: git branch -d <branchName> Force deletion: git branch -D <branchName> Deleting a Remote Branch in Git To delete a branch from a remote repository (like GitHub or GitLab): git push origin –delete Local Branch vs. Remote…