美文网首页
git push 操作 重定向 到 登陆url

git push 操作 重定向 到 登陆url

作者: 浩克啊12138 | 来源:发表于2020-10-22 11:08 被阅读0次
$ 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

相关文章

  • git push 操作 重定向 到 登陆url

    在进行git push操作时, 出现以上问题时候可以试着查看项目文件夹下的.git/config 文件 内容 如...

  • Git相关操作

    Git操作中遇见的一些错误 git pull 或 git push操作是出现 解决方法:重新设置远程url即可:

  • 2017.9.26

    git 复杂操作 git clone 地址 、//克隆仓库到本地 git push origin master ...

  • Git 基本命令笔记

    切换远程仓库的连接 git remote set-url origin URL 修改 config 文件,登陆git

  • Git装x指南

    终端输入which -a git查看本机装了几个git 本地操作 远程操作 PUSH 分支操作

  • session与cookie关系

    1、cookie 1)Http协议是无状态的,如果没有cookie,每次登陆后再进行增、删改查操作都要重定向到登陆...

  • 2019-03-14

    git使用命令 常规操作 git add . git commit -m ‘’ git pull git push...

  • response.sendRedirect与request.ge

    ①response.sendRedirect(url)-----重定向到指定URL request.getRequ...

  • git push 应用

    批量去操作 git add -A git commit -m "说明" git push STS001 HEAD:...

  • git操作(git pull,git push等)时提示ente

    WHATgit操作远程分支(git pull,git push等)时提示enter passphrase for ...

网友评论

      本文标题:git push 操作 重定向 到 登陆url

      本文链接:https://www.haomeiwen.com/subject/efyumktx.html