Skip to content

Commit 705b192

Browse files
committed
updating notes on deleteing remote branch
1 parent 331cb41 commit 705b192

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Git-and-Github/Delete-Branch.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,15 @@ as you can see above, we have 2 different argument, one with ‘d’ and one wit
1010
The **-d** option stands for --delete, which would delete the local branch, only if you have already pushed and merged it with your remote branches.
1111

1212
The **-D** option stands for --delete --force, which deletes the branch regardless of its push and merge status, so be careful using this one!
13+
14+
15+
---
16+
17+
## Delete remote branch permanently
18+
19+
20+
```
21+
git push origin --delete branch_name_to_delete
22+
```
23+
24+
This will remove the branch called `branch_name_to_delete` from the remote repository. (The `branch_name_to_delete` is a local branch on the remote.

0 commit comments

Comments
 (0)