Remote Branch no longer exists solution __ Tool

Source: Internet
Author: User


On Branch Feature/20180104_1709631_deletenotuse_1
Your Branch is based on ' origin/feature/20180104_1709631_deletenotuse_1 ' and but the upstream is gone.


1 Create a new branch
[New branch] feature/20180116_1766536_workarea_1-> origin/feature/20180116_1766536_workarea_1




2 Let the local branch trace the remote branch
Git branch--set-upstream-to=origin/feature/20180116_1766760_xxb_workgroup_1 feature/20180104_1709631_ Deletenotuse_1


3 git Pull


4) push Local to remote
Git push Origin feature/20180104_1709631_deletenotuse_1:feature/20180116_1766760_xxb_workgroup_1




5) Switch to new branch

git checkout feature/20180116_1766760_xxb_workgroup_1


Two other common commands:

Rename Branch git branch (M | m) <oldbranch> <newbranch>


View the remote branch associated with this sub-item: git status

➜wmpinbound git: (feature/20180130_1828099_xiaobao_1) git status
On Branch Feature/20180130_1828099_xiaobao_1
Your branch is up-to-date with ' origin/origin/feature/20180130_1828099_xiaobao_1 '.


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.