An error occurred when using git to publish the master branch of the solution in vs2013.

Source: Internet
Author: User
Tags using git
Environment: vs2013 + code cloud (https://git.oschina.net /)
Error description:
When you use git in vs2013 to publish the master branch of the solution,"The local branch Master cannot be published to the remote repository origin because a branch with the same name already exists. You may need to rename your local branch and try again", As shown in


In fact, the solution has been provided during the creation of the official website:

1. When creating a project, you do not need to choose to automatically create the README file. If you have already created a project, you can choose to clear the project.

 

After a project is created (excluding the README file), the code section automatically jumps to the prompt

According to the prompt, if the last command already exists, the problem can be solved:

 

The console executes the last group of commands.

CD existing_git_repo -- go to the GIT project root directory and execute the following two commands git remote add origin https://git.oschina.net/weiki.shaw/yufukaweb.gitgit push-u origin master

Click synchronize again.




An error occurred when using git to publish the master branch of the solution in vs2013.

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.