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.
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.
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
.
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.
y r
–
Ormond x
rather than k
. –
Levitt x
nor r
are standard Magit key bindings for this. By default x
is for resetting, and r
is for rebasing, and k
is for discarding or deleting. Anything different is due to your own config. Thanks for adding the command names to the answer, @Mark. –
Munday 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
.
magit-status
,b
,x
(instead of k
) in the current version of Magit. –
United © 2022 - 2024 — McMap. All rights reserved.
magit-status
,b
,x
(instead ofk
) in the current version of Magit. – United