1

In the manual pages about version control I find the instructions on how to create and switch to branches, also for Git repositories. But I can't find information on how to delete a branch – both locally and remotely – in a Git repository.

Which commands should I use? or is it not possible with Emacs' built-in version-control?

3
  • 1
    Not a definitive answer but I did want to point you to a statement in the doc: VC’s support for branch operations is currently fairly limited. For decentralized version control systems, it provides commands for updating one branch with the contents of another, and for merging the changes made to two different branches (see Merging Branches)... . You may have to do these things from the command line. Commented May 31, 2024 at 4:45
  • Thank you @NickD ! Please feel free to post that as an answer. Commented May 31, 2024 at 4:47
  • 1
    I don't know for sure that you cannot delete a branch from VC, so I hesitate to make it an answer: it's more of a hint at this point. Commented May 31, 2024 at 5:32

1 Answer 1

1

As of October 2025, VC does not provide any method of deleting revisions and/or branches. The only kind of deletion VC supports is file deletion via vc-delete-file and stash deletion via vc-git-stash-delete-at-point.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.