我有,我想运行git pull
运行git拉无误
其中一些可能是空的目录列表。
当我在它上面运行git pull
,我得到这个错误:
Your configuration specifies to merge with the ref 'master'
from the remote, but no such ref was fetched.
和1
退出代码我有我的脚本,如果任何命令失败退出。
是否有可能检测是否因此错误而失败?或者任何其他方式拉哪些不会在空的存储库中出错?
编辑:.git/config
git:(master) cat .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = <git repo url>
[branch "master"]
remote = origin
merge = refs/heads/master
你的git配置文件是什么样子的? – Rorchackh
@Rorchackh,在我的问题中加入了它。我刚刚运行了一个普通的'git clone'。 – user1527166
当你运行** git pull origin master **时会发生什么? – Rorchackh