git Delete Branch

Source: Internet
Author: User

git branch-d branchname Deleting a branch requires the following conditions:

1 if the branch to be deleted does not have upstream branch, the branch to be removed needs to be merged into the head, otherwise you will need to use-D to force the deletion

2 if the branch to be deleted has upstream branch, then the branch to be deleted needs to be merged on upstream branch. If you merge only the branch you want to delete into the head (head is not upstream branch), you cannot delete it. Using the-D option can also force deletion

git Delete Branch

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.