問題描述
每次在執(zhí)行
git push
時需要重復(fù)輸入賬號和密碼問題,這樣子比較浪費(fèi)時間和重復(fù)操作
可以使用如下操作
親測有效
Andrewer@CaesarGattuso MINGW64 /d/BaiduNetdiskDownload/gitRepository/test01 (b1)
$ git config --global credential.helper store
之后查看效果,會發(fā)現(xiàn)有一條credential.helper=store
文章來源:http://www.zghlxwxcb.cn/news/detail-538783.html
Andrewer@CaesarGattuso MINGW64 /d/BaiduNetdiskDownload/gitRepository/test01 (b1)
$ git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=Andrew
user.email=dac_ej@yeah.net
user.password=luiguanghan
gui.recentrepo=D:/BaiduNetdiskDownload/gitRepository/test02
http.sslverify=false
credential.helper=store
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
remote.origin.url=https://gitee.com/doreamen-ac/test01.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
gui.wmstate=normal
gui.geometry=841x483+208+208 189 218
Andrewer@CaesarGattuso MINGW64 /d/BaiduNetdiskDownload/gitRepository/test01 (b1)
之后push操作只需要輸入一次賬號和密碼之后就可以不需要重復(fù)輸入了文章來源地址http://www.zghlxwxcb.cn/news/detail-538783.html
到了這里,關(guān)于git中每次執(zhí)行push都需要輸入賬號密碼問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!