$ git push origin zx
fatal: unable to update url base from redirection:
asked for: https://code.yidaoit.net/sxt/vuebasic_mobile.git fetch = +refs/heads/*:refs/remotes/origin/*/info/refs?service=git-receive-pack
redirect: https://code.yidaoit.net/users/sign_in
在进行git push
操作时, 出现以上问题时候可以试着查看项目文件夹下的.git/config
文件
内容 如下:
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
[remote "origin"]
url = https://code.yidaoit.net/sxt/vuebasic_mobile.git fetch = +refs/heads/*:refs/remotes/origin/*
[branch "zx"]
remote = origin
merge = refs/heads/zx
[gui]
wmstate = normal
geometry = 841x483+54+27 189 218
查看后发现remote "origin"
中的fetch选项的换行没了, 被认为是url
参数的一部分, 导致出错
修改后果然成功可以push