git pull/push時(shí)免設(shè)置提示輸入賬號(hào)密碼方法
1、先cd到根目錄,執(zhí)行g(shù)it config --global credential.helper store命令
git config --global credential.helper store
2、執(zhí)行之后會(huì)在家目錄的.gitconfig文件中增加如下配置
[credential]
helper = store
3、之后cd到項(xiàng)目目錄,執(zhí)行g(shù)it pull命令,會(huì)提示輸入賬號(hào)密碼。輸完這一次以后就不再需要,并且會(huì)在根目錄
生成一個(gè).git-credentials文件
4、之后pull/push代碼都不再需要輸入賬號(hào)密碼了~文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-802617.html
參考鏈接文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-802617.html
到了這里,關(guān)于git pull/push時(shí)免設(shè)置提示輸入賬號(hào)密碼方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!