(git) added section on deleting branches

This commit is contained in:
zegonix
2025-08-26 16:09:13 +02:00
parent c9883c6769
commit 0ad28855bf

6
git.md
View File

@@ -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