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