設(shè)置全局倉庫的用戶名密碼
git config --global user.name "userName" //你的用戶名
git config --global user.email "email address" //你的郵箱地址
git config --list //查看git設(shè)置情況
git記住用戶名以及密碼
git config --global credential.helper store
以上是全局,會在用戶的主目錄生成.gitconfig文件文章來源:http://www.zghlxwxcb.cn/news/detail-509963.html
cat .gitconfig
[user]
name = deploy@123.com
[credential]
helper = store
之后在主目錄,操作git pull,會提示輸入賬號密碼,需要輸一次后面不需要在輸文章來源地址http://www.zghlxwxcb.cn/news/detail-509963.html
到了這里,關(guān)于git 設(shè)置全局賬號密碼的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!