Reputation: 91554
what is the magit key sequence which is the equivalent of
git push origin :branch-to-be-deleted
that will cause the branch to be dropped from the remote repo.
Upvotes: 17
Views: 4220
Reputation: 73274
You can type y (magit-show-refs
) to go to the refs buffer, and then k (magit-branch-delete
) on any remote branch to delete it.
Upvotes: 25
Reputation: 671
The built in branch delete feature of magit (magit-status
, b
k
; or directly call the function magit-branch-delete
) will delete remote branches in addition to local branches. Instead of specifying my-branch
as the branch to delete, make sure to specify my-remote/my-branch
.
Upvotes: 15