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.