Resolve Fatal:no remote repository specified. Please, specify either a url..._ version management

Source: Internet
Author: User

Today, using the git pull command on your computer to update your local project, you suddenly find an error that appears as a caption:

User ~/c/quhao$git pull
fatal:no remote repository specified.  Please, specify either a URL or a
remote name from which new revisions should to be fetched.
The reason for this problem is that there is a problem with the Git/config configuration.

The solution is to copy a config from another project, and then change the URL in it, or use the following template:


[Core]
        repositoryformatversion = 0
        FileMode = true
        bare = False
        Logallrefupdates = True
        ignorecase = True
        Precomposeunicode = False
[remote "origin"]
        URL = https://github.com/CrossLee/xxx.git
        fetch = +refs/ heads/*:refs/remotes/origin/*
        pushurl = https://github.com/CrossLee/xxx.git
[branch "master"]
        Remote = origin
        merge = Refs/heads/master
Change it to the address of your project:
url = https://github.com/CrossLee/xxx.git
pushurl = https://github.com/CrossLee/xxx.git

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.