1
0
mirror of https://github.com/namibia/tips.git synced 2024-06-25 22:52:34 +00:00

Merge pull request #18 from ejmr/git-push-delete

Add an easier-to-read way to delete a remote branch
This commit is contained in:
hemanth.hm 2015-07-29 02:05:53 +05:30
commit aa62766196
2 changed files with 8 additions and 1 deletions

View File

@ -115,6 +115,12 @@ git branch -d <local_branchname>
## Delete remote branch
```sh
git push origin --delete <remote_branchname>
```
__Alternatives:__
```sh
git push origin :<remote_branchname>
```

View File

@ -57,7 +57,8 @@
},
{
"title": "Delete remote branch",
"tip": "git push origin :<remote_branchname>"
"tip": "git push origin --delete <remote_branchname>",
"alternatives": ["git push origin :<remote_branchname>"]
},
{
"title": "Undo local changes with the last content in head",