(git) added section on deleting branches
This commit is contained in:
1 parent
c9883c6769
commit
0ad28855bf
1 file changed
+6
@@ -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