美文网首页
git拉取代码报“fatal: Authentication f

git拉取代码报“fatal: Authentication f

作者: cherishpf | 来源:发表于2020-06-02 10:12 被阅读0次

查看git配置:

$ git config -l
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=D:/software/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge --skip -- %f
filter.lfs.process=git-lfs filter-process --skip
filter.lfs.required=true
credential.helper=manager
user.name=xxxx
user.email=xxxxxxxx@163.com

执行命令:
git config --system --unset credential.helper
git config --global credential.helper store

查看修改后的git配置:

$ git config -l
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=D:/software/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge --skip -- %f
filter.lfs.process=git-lfs filter-process --skip
filter.lfs.required=true
user.name=xxxx
user.email=xxxxxxxx@163.com
credential.helper=store

执行克隆代码命令:
$ git clone "http://172.22.222.222:8080/tfs/xxxxxxxxxx"
出现输入新的用户名窗口:


填写用户密码:

只要用户密码正确,代码拉取成功!

相关文章

网友评论

      本文标题:git拉取代码报“fatal: Authentication f

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