I am recently learning git, and found people can delete short branches, but in Hg, after merging the branch to default, how could I delete it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot. You can close the branch to hide it from the list of active branches, but you cannot completely delete it.
This happens because in mercurial and in git the “branch” term means different things.
In mercurial – it is a set of changesets.
And in git – it is a pointer to a particular changeset.