Tag Archives: specify either a URL…

[How to Solve] fatal: No remote repository specified. Please, specify either a URL…

Today, I used the GIT pull command to update the local project on my computer. I suddenly found an error such as the title:

User ~/C/quhao $git pull
fatal: no remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fed

the solution is to copy a copy of config from other projects, and then change the URL, 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