美文网首页
git pull 或git push 一直提示输入密码的解决方法

git pull 或git push 一直提示输入密码的解决方法

作者: 离陌夕 | 来源:发表于2021-03-30 10:33 被阅读0次
    xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
    $ git remote -v
    origin  git@git.xxx.com:xxx/xxx.git (fetch)
    origin  git@git.xxx.com:xxx/xxx.git (push)
    
    xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
    $ git remote rm origin
    
    xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
    $ git remote add origin http://git.xxx.com/xxx/xxx.git
    
    xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
    $ git remote -v
    origin  http://git.xxx.com/xxx/xxx.git (fetch)
    origin  http://git.xxx.com/xxx/xxx.git (push)
    
    xxx@DESKTOP-418BI8M MINGW64 /e/gitcode/xxx-master/xxx/os-project (master)
    $ git pull origin master
    From http://git.xxx.com/xxx/xxx
     * branch              master     -> FETCH_HEAD
     * [new branch]        master     -> origin/master
    Already up to date.
    

    相关文章

      网友评论

          本文标题:git pull 或git push 一直提示输入密码的解决方法

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