Nest all content into snippets
This commit is contained in:
21
snippets/git/s/delete-branch.md
Normal file
21
snippets/git/s/delete-branch.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: Delete a branch
|
||||
type: snippet
|
||||
language: git
|
||||
tags: [repository,branch]
|
||||
cover: volcano-sunset
|
||||
dateModified: 2021-04-13T21:10:59+03:00
|
||||
---
|
||||
|
||||
Deletes a local branch.
|
||||
|
||||
- Use `git branch -d <branch>` to delete the specified local `<branch>`.
|
||||
|
||||
```shell
|
||||
git branch -d <branch>
|
||||
```
|
||||
|
||||
```shell
|
||||
git checkout master
|
||||
git branch -d patch-1 # Deletes the `patch-1` local branch
|
||||
```
|
||||
Reference in New Issue
Block a user