Skip to content

Commit aa62766

Browse files
committed
Merge pull request #18 from ejmr/git-push-delete
Add an easier-to-read way to delete a remote branch
2 parents b76f3c9 + 8a26365 commit aa62766

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,12 @@ git branch -d <local_branchname>
115115

116116
## Delete remote branch
117117
```sh
118+
git push origin --delete <remote_branchname>
119+
```
120+
121+
122+
__Alternatives:__
123+
```sh
118124
git push origin :<remote_branchname>
119125
```
120126

tips.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
},
5858
{
5959
"title": "Delete remote branch",
60-
"tip": "git push origin :<remote_branchname>"
60+
"tip": "git push origin --delete <remote_branchname>",
61+
"alternatives": ["git push origin :<remote_branchname>"]
6162
},
6263
{
6364
"title": "Undo local changes with the last content in head",

0 commit comments

Comments
 (0)