Timeline for How do I delete a Git branch locally and remotely?
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 13 '18 at 4:43 | history | edited | Anant Kumar Singh | CC BY-SA 4.0 |
deleted 14 characters in body
|
Oct 14 '15 at 7:09 | comment | added | mahemoff |
This is perfectly simple as you've done it, but fyi git also lets you make custom commands. Put git push origin --delete $1 in a file on your path called git-shoot and git shoot branchname will work too.
|
|
Dec 12 '14 at 0:29 | comment | added | neoscribe | If your origin is a Atlassian Stash and the branch is set as the default, you will get an error "By default, deleting the current branch is denied...". I had to change the default branch in Stash to point to another branch before I could delete. | |
Dec 4 '14 at 18:06 | comment | added | hdost | I ended up just add the alias "shoot" into my .gitconfig shoot = push origin --delete | |
Nov 29 '14 at 6:27 | history | edited | Peter Mortensen | CC BY-SA 3.0 |
Added some context.
|
May 27 '14 at 2:41 | history | edited | Amal Murali | CC BY-SA 3.0 |
Formatting
|
Apr 2 '13 at 22:11 | history | answered | crizCraig | CC BY-SA 3.0 |