Update git-branch.md

This commit is contained in:
Rico Sta. Cruz 2020-01-20 16:13:57 +11:00 committed by GitHub
parent fd9ccf25d5
commit ef74b689ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -51,10 +51,12 @@ git branch -a --merged
List outdated branches that have been merged into the current one. List outdated branches that have been merged into the current one.
### Delete a local branch ### Delete a local branch
```bash ```bash
git branch -d $branchname git branch -d $branchname
``` ```
Deletes the branch only if the changes have been pushed and merged with remote
Deletes the branch only if the changes have been pushed and merged with remote.
### Delete branch forcefully ### Delete branch forcefully