How do I delete a Git branch locally and remotely?
How do I delete a Git branch locally andĀ remotely?
Executive Summary git push -d <remote_name> <branchname> git branch -d <branchname> Note:Ā In most cases,Ā <remote_name>Ā will beĀ origin. Delete Local Branch To delete theĀ localĀ branch use one of the following: git branch -d <branch_name> git branch -D <branch_name> TheĀ -dĀ option is an alias forĀ --delete, which only deletes the branch if it has already been fully merged in its upstreamā¦
View On WordPress













