(git) added section on deleting branches
This commit is contained in:
6
git.md
6
git.md
@@ -47,6 +47,12 @@ git checkout -b <branch-name> <base-branch>
|
|||||||
git switch <branch-name>
|
git switch <branch-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### delete a branch
|
||||||
|
|
||||||
|
To delete a branch locally use `git branch -d <branch name>`.
|
||||||
|
|
||||||
|
To delete a branch on the remote repository use `git push -d <remote> <branch name>`.
|
||||||
|
|
||||||
|
|
||||||
## submodules
|
## submodules
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user