Errors and solutions may be reported after git adds a new branch

Source: Internet
Author: User
Error message:

You asked me to pull without telling me which branch you
Want to merge with, and 'Branch. v1.0.merge' in
Your configuration file does not tell me, either. Please
Specify which branch you want to use on the command line and
Try again (e.g. 'git pull ').
See Git-pull (1) for details.

If you often merge with the same branch, you may want
Use something like the following in your configuration file:

[branch "v1.0.0"] remote = <nickname> merge = <remote-ref>  [remote "<nickname>"] url = <url> fetch = <refspec>

See Git-config (1) for details.

Solution

Modify the. Git/config file

[core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = [email protected]:datawarehouse.git [branch "master"] remote = origin merge = refs/heads/master [user] email = [email protected] name = wujuan [branch "v1.0.0"] remote = origin merge = refs/heads/v1.0.0

Errors and solutions may be reported after git adds a new 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.