Skip to content

Commit

Permalink
Update git-branch.md
Browse files Browse the repository at this point in the history
To delete a branch already pushed and merged with remote, use `git branch -d $branchname`
  • Loading branch information
r3s authored Jan 17, 2020
1 parent bc51528 commit fd9ccf2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-branch.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ git branch -a --merged

List outdated branches that have been merged into the current one.

### Delete a local branch
```bash
git branch -d $branchname
```
Deletes the branch only if the changes have been pushed and merged with remote

### Delete branch forcefully

```bash
Expand Down

0 comments on commit fd9ccf2

Please sign in to comment.